{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "subvector_dim 4\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n",
      "WARNING clustering 1000 points to 256 centroids: please provide at least 9984 training points\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(32, 256, 4)\n",
      "(1000, 32)\n",
      "quantized_db[:, i] [227  34 252 231 118  68 159 164 144 168 106 229   6  54 147 119 139  13\n",
      " 216  24  49  57 133  68 142 115  31 119  74 255 129  10  56  59  91   4\n",
      " 107 172 127 243  95 117  64 253  16   7  31  33  63 242  75  73   0 121\n",
      "  72 215 246  38 145  66 216 246  90 201  84 128 173 236 230  99  48  84\n",
      " 116 162  84  24  40  34 253 144  76  77 192   0  84  33  41  69 231  40\n",
      "  76 197 136 172 224 110 201 143 228  99  13  67 106  83   2   5 236 175\n",
      " 134 130 105 157 168 161  20 116  28  41  61 177 245 143 107 142 253 110\n",
      "  78 110  75  29   9  71  89 205 155 162 158 106 141 112 251 243 142 250\n",
      "  47 189  70  41 179  46  18  51 168 119 188 156  87 130 152  50 197 125\n",
      "  27 161 180 163 232 186 154 223 104 236 228 244 152  46 200 106 104 102\n",
      " 200  34 228   9 125  35 133 154  85 143  49  32 199  95 211  72  31  50\n",
      " 125  72  39  50  12  94 138  43 246 255 189 123  35 164 191  50 109 148\n",
      " 133 150 153 236  41 192 149 243 159 103 145 137  53 142 205  52 218 250\n",
      "  83 190  74  83 228 216  12  30  15 196  48 106 196 240  72  86  64 166\n",
      "  73 201  42  14  24  37  92 216  56 101 109  24  54  63 249 215 181  24\n",
      "  71   7 165 239 233 230 252 221 192 125 158 210 245 119 198 218  79  71\n",
      " 110  46 149 165 172 192 240  52  33 124 163  62   0  77  16 188 171  13\n",
      " 147 222  55 188 221  34  60 102 190  90 255  51 147 117  27 226 159 157\n",
      " 198   6 194 176 106 177  46 219  26 155 253 241 168 200  31 178 101 167\n",
      " 246  64 229 194 171 222  33  92  21 207 101 214 253 217 130 150 229 206\n",
      " 235 219  91  94   0 131 152 252 120 116  52 225 226 241 166  23  46 103\n",
      "  33 117 207 170 220  85  84 233 205  72 119 230 235 210  51  42 139 203\n",
      " 193   7 168  86  91 118 208 100  24  12 189 221  19 205  90 197 138 124\n",
      "  60 215 115 159 254 159 114   7  82 146 209  59 171  86 203   7  77 222\n",
      "  91  28 184 199 190 186 242 103 106 231  26 158   4 219  99  57 166 159\n",
      " 223  70  93 227 127 155 122 170 216   4 130  94  79 203  54  41 122  30\n",
      "  75 201 249 210 187  53 174 101 173 203 154 245  37   8  56  71 165 159\n",
      "  33  74  81  75  29 229 138 200 135 171 228 181 133 152 221 250  45   9\n",
      " 196 134 138 228  59 153 108 247 166  54  87  31 131 118 137  42 168 154\n",
      " 111  18 245 214 178  22 151  54  92 168  63 174 234  21 239 125 216  48\n",
      "  65  33 175 238 191  99 243  53  54 140 111 112   7  23 131  29 154 122\n",
      " 207 179 203 231 116 122   0 132  98  48  66 195  94  88   1 157 248 213\n",
      " 252 188  13 118 192 254 235  13 191 226  73  13  10 235  82 139 217  47\n",
      "  61   5  50  85  16  70  28 165  10 120 253  42  82 104  96  39  56 125\n",
      "  50 118  89 217 201 227  21  74  16 110   5  62 214  77   9 191 251  17\n",
      " 200 131  18  97 103 250 183 227 144  66  44 248 232 134 206 116  46 107\n",
      "  24  38 142  46  89 245 131 251  37  18  99  35  60 182 103 163  65 161\n",
      " 221 187 177 135  57 127 158 244 197 128  40   1  62 127 218 113  75  20\n",
      " 149  99 203 227 109 140 231 104 130 191 102 229 108  87 101 133 114 222\n",
      " 209 170 113 247  25 123 126   2 233 109  49 182 136 218 239 152 200  79\n",
      " 162 196 239 123  65 154 189  79 213  85  30 120  30  49 110  61 143  63\n",
      " 105 243 110 129  92 128 209  47 125 114 174 216 142 142 249   4 147  42\n",
      "  94 102 155 128 181 241 217   6 164 176   3 245 250  89  22 188  99 170\n",
      " 129 108 171 235 151 234 129  76 136 233 204 147  16  11 183 237 234 162\n",
      " 119 251 145  77  40  49 191  96 186  56 249  57   7 144 129 181 135 215\n",
      "  88 235  65  11 122  64 126 123 110 255 110  37 168 121  49  13 149 117\n",
      " 132  70 206 137 135  27 111  81 238 212 174  78  69 242 137   4  36 175\n",
      " 205  75  84 166 154 162  63 225 142 250  99  21  79 126  94  58 144 100\n",
      " 213 178 132 255 110 241 105  30  65 205 221 114 187  65 201 151 158 220\n",
      " 171 176 178  50 107  30 184  30  85 121  43 109  53 168   1 182 118 131\n",
      " 118 115 166 223  31 242 102 103  33  57 152  36 169   1 119 104   9 196\n",
      "  24  33 147  18  24 205  74 234  25  39  82  53 143 102 252 247 201   6\n",
      " 105 107 160 205  21 190 125 245 138  90 138   2 102  50 158  80  47 213\n",
      " 246 127 253  16 121 240 168  77  94 123  62  42  18  56 176 185 241 167\n",
      " 124  46 139 117 113 139  27 116 139 237  48 229  95 137 183 238 185 144\n",
      " 113  86 115 202 192 120  94 133   1  66]\n",
      "cb_subvector [[0.6766271  0.18371351 0.27181482 0.3774759 ]\n",
      " [0.7456341  0.36103937 0.68587965 0.16680422]\n",
      " [0.70034915 0.8107535  0.05510486 0.24050339]\n",
      " ...\n",
      " [0.4990229  0.20598754 0.4776389  0.5104748 ]\n",
      " [0.63973653 0.13689804 0.7567572  0.9435012 ]\n",
      " [0.50009686 0.42911363 0.5099027  0.6879492 ]]\n",
      "quantized_db[:, i] [ 73 172 213  55 118  68  32 193 144  82 251  24  37 238 126  84 193 208\n",
      " 247  62 188  94  69  47 129 115  31  63  74 255 186 147  99  59 139 122\n",
      " 137  69 127   6 108  83 186 102  23  90 226   4  28 107 119 180  14 126\n",
      "   1 192   8  38 208 111 165 246 208 135 233 253 155  10 160 255  10  57\n",
      " 123 195  84 194  46  34  97  68  76  53 230   0  41 136 181  74 147  38\n",
      "  65 104 164 126 224  68 150 139 228 135  13  67 138 120   2 202 236  75\n",
      "  75 175 153   4 156 161  20 183 175  97 145 204  69 200 107   1 112  62\n",
      "  87  50  75  29  12  38  11 205 252 162  33  27 141 158 251 215 142  86\n",
      " 240 189  70 201 179 147 154  51 112 119 207 156 189 130  33  50 123  62\n",
      "  27  57 180 163 228  51 154 170 136  89 138 143 152  94 163 106  21 146\n",
      " 175 158   6 210  29  35   7 251 186  82   5  32 199 186 211  72 136 160\n",
      "  65 104  91  15  12 231 212  43 246   1 149  21 222 164  27 222  36 148\n",
      " 133 150 107 135 187 142 147 193  57 201 145 123 109 116  41  52 170 248\n",
      "  48 111 186  83  69 217  63  30  61 225 236 182  60 240  57 124 140 169\n",
      "  97 138 138  14 178 122 205 216  57  53 194  82  91 130  74 178 131 110\n",
      " 221  97  94  91  29 230 238 128  52 125 119 225  37  28 198 125 164  43\n",
      " 226  47  99 102 172  97  54 194  11  60  61 136 150 158 216  99  64  44\n",
      " 147 222  55 188 211 212 162  56 210 203 123 133  17  72 130 202 159  99\n",
      "  99  14 194  36 229 102  42  98 222  60  75  54 118 113 151 117   8 151\n",
      " 168 225  60  19 186 129 128  47  21 182  64 178  59 157  83  70 229 247\n",
      " 235  14  91 128 181 100 147  56 120 116  40 225 198  70 166  23 127 244\n",
      "  63   8 207 147 220  85  18 233 166 245  48 143  37  25 204 243 104 189\n",
      " 193  92 252  86  13  41 208 100 176  53  60 142  19 182 213  19  77 108\n",
      "  60 253 193 165  37   1  84   7  46 146 145 133 108 133 203 170  17 223\n",
      " 169 219  76 155 106  24  93  42 241 136  26 221 196 219  68 121 154 169\n",
      " 223  28  93 201  71 178 122 170   9   4 203 163  79  60 143 110  47 102\n",
      "  27 229 249 133  80   8  11 196 252 239  33 210  83   8  56  96 208 169\n",
      " 136 128 230 201 200 226 155 227   4 165  38 181  37 137  95  98  45   9\n",
      "  88 137 248  45  38 170  51 174 159  54  87 229  50  50 186   0 125 222\n",
      " 111 107 165  98 240  22 151 149 174 122  63 171 125  50 239 112  23  48\n",
      " 252 163 148  41 140 187 243  53 136 140 208 112  76  12  18 242 247  23\n",
      "  33  96 246 231 121  43 195  50  98 177  66 195 202  70  26 157  80  32\n",
      "  98 131 143 190 192 254 215 131 110 226  73  37 118 242 213 162  97 107\n",
      " 213 171 189  85  16 196  28 233  44 180 185  25 201 104 186  39  12  67\n",
      "  24  53 221  94  80 227 241 162  26 190   5 224 214  51  51 191  67  17\n",
      " 200  89 101  97  49  99 183 105 146 200 145 248 232 160  63 240  37 195\n",
      " 208 171  33  18  64 245 220 120  82 161 207 168  37 117 255  88 195 242\n",
      "  79 187 177  56 207 122  86 244 197  75 149   1  62 102  96 186 205  59\n",
      " 149  99 136 210  10 156 192  77  34 143 130 201  10 135 101 167 114  56\n",
      " 190 172 150 247  25 233 126 163 234 109  49 182 141 218  72  35 182 131\n",
      " 180  96  20  12   8 167 159   0 189 196  15 165 107 187  68 138  37  55\n",
      " 182  50 157 241  92 141 209 123  85 162  41 229 145 110 117  85  23 188\n",
      "  55 110 191  56   7 241 217   6 133  25   3 119 211  89 186 136 117  98\n",
      " 153 108   5  59 203  85 129  10 136 157 204  32  46  11  20  12 219 229\n",
      " 216  52 121 172  41 196 170  96 186 128  97  57  60  15  43 169 184 215\n",
      " 219  24 171  19 187 147 234 243   0  14 178 175 168 216 232  20 121 117\n",
      "  86 149 206  29 135 196  21  81  71 103 174  78 176  17 144  56  41 116\n",
      "  52  44  68  98 169  99 108  84 216 250 158 200   5 147 182  58  36 187\n",
      " 213  83 174 151 247  29 105  28  65  83  67 126 247 217  31  73 143 241\n",
      " 135 101 178 224 179  65 184  99  21 134  53  78 178 105  64 229 129 131\n",
      " 169 224   9  94  75  13  64 103 235  69  27  36 169 109 119  78   7 153\n",
      "  24  33 117 242  82  89  41 234 135  29  82  45 143  99 252 173 121  69\n",
      " 142 125 160 241  75  18 183   2 138  90 235 215 102 254 175  80 188 187\n",
      "  98 134 253 130 165  30 199  77  43 123 184  42  56  56 239 238 171 140\n",
      " 124  15 139 171  34 132 228  32 182 237 250   2  95 137 165 238 185 169\n",
      " 113 220 120 236  83 205  94 101 229  86]\n",
      "cb_subvector [[0.84486914 0.34989357 0.96291256 0.6711866 ]\n",
      " [0.52424407 0.79801595 0.91770446 0.07619285]\n",
      " [0.43881193 0.06778394 0.9501583  0.11819277]\n",
      " ...\n",
      " [0.4875037  0.18048447 0.57225204 0.39596555]\n",
      " [0.65994066 0.22933334 0.15796547 0.341138  ]\n",
      " [0.08671646 0.59583795 0.20412087 0.51917535]]\n",
      "quantized_db[:, i] [205 109 201 251 118  68 202 134 144 168 202 238   1 166  19  81 195 169\n",
      " 239 199  49 199 219  47  30 115  31 151  74 255  66   2 244  59  29 227\n",
      " 198 224 127 243 252   8  33 104  79  89  74 196 167 238  13 225 212 121\n",
      " 101 123  74  38  15 100  25 246 190  27  53 238 133 147 192  77  88 177\n",
      "  45  44  84 127 248  34 189 192  76  99 201   0  79 215 133 153 204 174\n",
      "  43  52 170   2 217 222 181 196 228 248  13  67 172  36   2 200 236  85\n",
      "   3 125  34  33  38 161  20  36 247 223 131  43 119 123 107 167  96  69\n",
      " 165  35  75  29 226  83  33 205 223 162 157 116 141 158 251 206 142  45\n",
      " 128 189  70   0 179 217  44  51 225 202 140 156  30 130 134  50  14 167\n",
      "  27   0 104 163 118 254 154 167 112  19 209 255 152 116  99 106  90  99\n",
      "   6 117 244 239 124  35  86   0 166 139 227  32 199  82 211  72  26 171\n",
      " 153 178 105 119  12  77  10  43  61 104  98  11  18 164 160 193 195 148\n",
      " 133 150  76  64 202 178 191  92 107 183 108 150  77 224 191  52 243  26\n",
      " 216 190 181  83 177  95 246  30  15  43 111 128 111 240 139 113  78 195\n",
      "  38  85 241  14 145 176  33 216 142 201  84 101  15 158 191 195 201 125\n",
      " 136 119  94 136  84 230 134 100 105 125  78  64  82 212 198 116 234 153\n",
      " 132  46  51   8 172 241  57 164 112 236  61  89 165 124  89  99 171  88\n",
      " 147 222  55 188 194   2  73 173 170  26  52  49 174 173  78  72 159  46\n",
      " 124 250 194 139 201 123 110 240  85 217 244 243 183 221 121 201 183 167\n",
      " 189 211  49  49  40 193 152  34  21 136 174 153 201  79  23 166 229  71\n",
      " 235 124  91  78  44  51 229 244 120 116  27 225  16 152 166  23 172 212\n",
      " 170   2 207 130 220 221  25 233 236 207  88 198  34 252  75  45  99 182\n",
      " 193 192 248  86  85  85 208 100  49 221 107  11  19 192 199 139  43  21\n",
      "  60 145  40 186 164 247 198   7 142 146 180 203 198 224 203 131 250  33\n",
      " 139   7 244 134 161  13 110  63 175 168  46 164 164 219 122 176 209   5\n",
      " 223 171  93  12  71 155 210 170  25   4 247  69  79  57  88  97 184 224\n",
      " 198  26 249 210 248 132 190 180  41 251 180 132  37   8  56 100   4 147\n",
      "  34   6 238 104 150  95 195 251  58  54 226 181  59  27  66 215  45   9\n",
      " 187 132 157  86 116  72 248 154  80  54  87  86  29 196 180  77 171  56\n",
      " 111  35 251  67 139  22 151 201 186 134  63 159 103 169 239  68 199  48\n",
      "  62 120 172 174  15  65 243  27 145 140   1 112  28 120 104   3  59 241\n",
      " 172  53 206 231  66 127 154 180  98 180  66 195  29 104  56 157 117 117\n",
      " 187  30  43  25 192 254 124  52 110 226  73  94 233 242 107 164  30 239\n",
      "  87  34 177  85  16  67  28  69 251  60 138 111 255 104 182  39 230 206\n",
      " 254 168 131  71  34 227 136 242 218 233   5 193 214 127 224 191 216  17\n",
      " 200 106  18  97 191 158 183 151 250 122  44 248 232   1  35  68  36  64\n",
      "  80 194 205  62 146 245  60  26  47 129  73 180 244 232  91  88 167  24\n",
      " 221 187 177 178 136 230 247 244 197 128  82   1  62 240 219 183  99 159\n",
      " 149  99  10 169 103  77 127 156 125 146  55  50  10 158 101  92 114 187\n",
      "  74 185 218 247  25  70 249  19 112 109  49 182 233 218  22  98 105 126\n",
      "  70 192 180 124  53  56 153 129 175 196 112 204 194  24  83  77 121  13\n",
      " 152  30 166  82  92 139 209 166  70 185 108  19   0 136 155 216  82 208\n",
      "  39 159 151 162 125 245 217   6  75  88   3  92  33  89 111 147 255  55\n",
      " 153 108 133 248 253 166 129  73 136 242 204 251  85  11 181 243 101  44\n",
      " 247 252  47   2  71  97 105  96 186 205  93 198 114 100 202 124   6 215\n",
      " 157 190  65 255 230  64 193  41 169  27 121  17 168  34   3  61 221 117\n",
      " 169   9 206  92 135 252  90  81  88 212 174  78 176  95 119  40 191 189\n",
      " 120 252 205 122 109 222 158  95 241 150 252  70 240 252 233  58 145  81\n",
      " 213 112  40   5  77 228 105 188  65  79  10  83  78  52  45   6 162  94\n",
      " 219  16 178 100   2  97 184 158 199 134 102  10 168  65   3   2 251  96\n",
      "  89  57  79  34  29 191   0 103  56 107 215  36 169  34 119 123 192 248\n",
      "  24  33  78  78  78 145  41 234 198  90  82   6 143  46 252 173 132  18\n",
      " 227 204 160 157  67  55 222 232 138  90  91  44 102  74 208  80  93 129\n",
      "  56 250 253 188 165 165  54 162 194 123 178  42  54  76  69  92  29  92\n",
      " 124  90 139 148 104 132  49  14 158 237 175  74  95 137 233 238 185  46\n",
      " 113 253 227 202 132 116  94  13  64 166]\n",
      "cb_subvector [[0.4413422  0.2916754  0.44809657 0.7878229 ]\n",
      " [0.38850725 0.10721555 0.3664704  0.5390544 ]\n",
      " [0.33601934 0.12707679 0.13798311 0.11898924]\n",
      " ...\n",
      " [0.55978596 0.6439773  0.06450488 0.86458075]\n",
      " [0.45287132 0.18177041 0.75269854 0.29532558]\n",
      " [0.69024336 0.6781893  0.07233679 0.5387304 ]]\n",
      "quantized_db[:, i] [107  53  61 147 118  68  21  30 144  39 156  82  38  39 216 124   7 247\n",
      " 178  12  39 113  67  47 131 115  31 102  74 255 212 179 216  59  96  46\n",
      "  87 123 127 150 114 137 108  28 125  39  22 192  96 119 111 134 212 121\n",
      "   5 154 151  38 237 228 191 246 191 215 114 199  85 249  29 121 178  99\n",
      "  95  44  84 195 249  34   1  25  76  67 154   0 207 124  69 182 155 129\n",
      "  65 155  31 163 224 147 153 173 228  23  13  67 156 192   2  48 236 205\n",
      "  33 191  63  70  82 161  20 216 250  38  57 182  69 238 107  61 165 188\n",
      "  35 255  75  29 208 160  52 205 192 162  35 175 141 158 251  70 142 241\n",
      " 154 189  70 187 179 133  44  51  74 247 225 156 180 130 173  50  35 181\n",
      "  27 158 180 218  64  16 154 103 138  43 122 123 152 240  84 106  82  43\n",
      "  69  80  29  80 253  35 127  86  97   9 154  32 199  93 211  72  34 151\n",
      " 173 175  97  15  12  44 206  43   3 180 104 134 135 164  82  71 214 148\n",
      " 133 150 154 120 137 159 129 107 184 202 145 134  71  10 136  52 110  80\n",
      "  57 190 195  83  70  87 205  30  15 181 191  73  46 240  96 124 177 140\n",
      "  16 201 221  14 129  15 105 216  96  38  52 204   8 225  44  35  53 102\n",
      " 182 106  81  38   4 230 109 188 124 125 247  38  19 128 198  69  68 124\n",
      "   3  46  79 186 172 188 241 251  17 151  61  10 148 189 125  62 171  87\n",
      " 147   9  55 188  53  80  22 169  31  19 134  15  87  46 251   7 159 121\n",
      " 223  53 194  58 132 224 118  62  41 111   3 165 175  42   9 163 255 167\n",
      "  33 251 165 155 135  97  32 239  21  18 156 182 133  40 177 202 229 156\n",
      " 235 217  91  19 121  49 183 222 120 116  99 225  22 215 166  23 242 163\n",
      " 251 131 207 100 220 155 134 233 191 150 125 252 181  42  88  48 233  53\n",
      " 193 137  93  86 105  52 208 100  84 113 177  48  19 147 142  69  40 249\n",
      "  60  47 251  27  81 232  38  25 182 146 139 192  60  61 203 109 197  36\n",
      " 250  88 142 205 140 220  86 146 158 187 230 116  68 219  12  22  82  70\n",
      " 223  62  93  87  71 155 122 170 207   4  35  53  79 112   0 142  49 189\n",
      " 200 215 249 210 162 113   9 202 150  48 241 202  37   8  56 245 247  83\n",
      " 125 250  97 101 112   0 168 222 155  49 239 181 183 145 142 197  45   9\n",
      " 146  19  11 240 173 234  25 151 215  54  87  60  61   7  10  24 248   6\n",
      " 111  98 165 100 146  22 151 100 173 100  56 156 222 234 239 139  95  48\n",
      "  18  33 175   8  20 147 243  53  41 140 208 112 164  66 181 248 235 127\n",
      "  47 175  69 231 252  47  79   6  98  57  66 195 153 167  11 157  41  96\n",
      " 148 110 214 132  78 254 233 118 110 226  73 168 182 242 147 199  17 107\n",
      " 237 122  82  56  16 241  28 252 234  56 250 195  62 104 143  39   1 207\n",
      " 182 156  44 195 202 227 173  48  58 179   5  21 214  86 236 191 170  17\n",
      " 200 112  18  97  38  19 183  16 155  87  44 248 232  77 116 216 155 247\n",
      " 222  71  43  63  65 221 127  70  32 115  79   1 191 150 120  88 111  43\n",
      " 221 158 177 212 148  18 134 244 197 128 123   1  62 139  87 116 219  77\n",
      " 149  99 158 122 200  41 193  49  97 168 169  40  10  86 101 233 114 217\n",
      " 232 140 182 247  25   7 126 176  54 109  58 211 198 218 146  18 138 124\n",
      "  92 135 128  26 198  75 217 196  97 196 131 108 162 233  62 103  66  30\n",
      "  81 212 116  78  92 128 209  99 114 225 121 103 159 252 116  52 193 248\n",
      "  71  89  79  39  52 241 217   6 245 238   3  45  28  89 107 241  49 142\n",
      " 153 108  98 187 165 123 129 224 136 222 204 122 103  11 226 147 129 115\n",
      " 209  28 138   3  31   1 147  96 186  21 179  57 206 113  48 199  12 215\n",
      " 220 175 121 122 252  64 103 251 184  97 215  89 236   2 141 101 253 117\n",
      " 206 124 206 221 135 112 222 115  25 212 174  78 176  90  50  47  36  95\n",
      "   5  93 121  30 160 139  69 179 130 250   5  45  27 174 140  58  24  17\n",
      " 213 133 105  16  76 127 105  64  65  97 183 133 195  61 156 192  84 189\n",
      " 164 162 178 147 248 255 184  27 245 134  94  26 177 146 104 243  63  92\n",
      " 120 169 169 153 132 184  93 103 105  91 130  36 117  16 119 131 238  41\n",
      "  24  33 189  30 183  30  41 234 220  81  82 246 143 219 252 173   9 216\n",
      "  23 223 160 153 105 121  69  36 138  90  88   3 102  96 182  80 162 253\n",
      "  30  75 253 221 165 198 202  77  72 123 207  42 206 251  85 107 175 169\n",
      " 124  91 139  86  86 132 108 216 222 237  48 108  95 137 198 238 185 245\n",
      " 113   2 249 202  39  82  94 132 153  40]\n",
      "cb_subvector [[0.48284042 0.10559273 0.39006227 0.61305666]\n",
      " [0.1168326  0.27172676 0.93314606 0.5082647 ]\n",
      " [0.22311485 0.6281128  0.26676583 0.29140913]\n",
      " ...\n",
      " [0.86616623 0.5732153  0.8608923  0.830982  ]\n",
      " [0.06367999 0.577603   0.106158   0.54792637]\n",
      " [0.91631126 0.29044908 0.57309705 0.43270928]]\n",
      "quantized_db[:, i] [ 79 187 226 113 118  68 193  62 144 140 164  16 219 115  50 108  44 196\n",
      " 138 119  31 119 157  47 163 115  31 116  74 255  44 135 132  59 148 230\n",
      "  51 128 127 210  11 129 233   0  27 229  72  13  94  44 189 132  29 121\n",
      " 188 132  21  38  18  78   0 246 213  78 219  88  90  31 175   1 137  21\n",
      " 132   9  84 124  70  34  80  83  76  13 131   0 111 217 196  69  14 225\n",
      " 134  27 232   9 224  59  66 182 228  15  13  67  60  52 153 219 236 120\n",
      " 184 146 102 233  42 161  20 117 213 131 151 112 208  81 107 173  87  21\n",
      " 205 140  75  29 170   1 250 205  71 162  14 217 141 158 251 170 142  11\n",
      " 172 189  70 152 179 100 148  51 111  21  47 156 187 130 239  50 244  60\n",
      "  27 166 180 163 229  68 154 145 164 105  55  63 152  38  42 106 217 114\n",
      " 169 148   4 193 237  35  98  25 166  12 169  32 191  63 211  72 249  39\n",
      "  65   8 133   3  12 235 166  43 151   0  45  55 123 164 133 188  44 148\n",
      " 133 150   6 151  92   7  25 206 157  20 145 138 135  58 131  52 206 158\n",
      "  70 190  45  83  68 168  29  30  15 222 181  47  47 240  93  96  44  99\n",
      "  44 201  63  20 204 242 253 216  43  53 177 162 205  71  86 226  14 205\n",
      "  23 117 187 158 234 181  94 197 190  48 150 229 233 221 198  79 139 248\n",
      "  22  46 130 253 172 145 163  62 230 114  61   3  83  96  54  51 171 114\n",
      " 147  26  55 188 248 240 245 255 167 100 230 155 221 236  13 253 159  81\n",
      "  70 113 194 221 207 255 120   5  97 215 210 156  30 170  41 155 183 167\n",
      "  60 146 192 253 113  44  49  63  21 190 154 104 199 130 234  79 229  17\n",
      " 235 136  91 255 239 239   9 131 120 116  40 225 210 252 166  23  69 171\n",
      " 220  25  24 148 220 251  89 233 211  83 151  69 121  42 149  42 203 213\n",
      " 193 114 242  86   1 180 208 100 230  80 217 230  19 134 186  73  63 146\n",
      "  60 217 238 212 115  22 216   7  44 146 251  14 214  46 203  61 236 125\n",
      "  76  57  77 116  89   6 229  56  40 123  26 207 142 219 222 248 107  13\n",
      " 223 248  93   6  71 155 122 170  72   4  62  10  79 114 113 148  46 207\n",
      " 126  24 249 210  54  44 103 240 244 122 180  79  37   8  56 103  94 248\n",
      "  40 102   5   9   7 210 130 186  78 110 111 181  11  24 214 240  45   9\n",
      "  11 233 230  35 138 215 180 243 125  54  87 235  71 150 188 231  43  14\n",
      " 111  86  39 117 113  22 151 209 121 175  63  16   1  47 239 155 195  48\n",
      " 155 217 175  72 124 125 243  53  57 140 254 112 198 204 212 158 144   3\n",
      " 110 105  94 231  65  66 178 116  98 211  66 195 210 109  91 157 188  79\n",
      " 114 243  45 244 192 254 181  90 110 226  73  97 249  33 156 225   5 245\n",
      " 109  19 132  85  16  53  28  38  35  71 237 148  63 104  89  39  36 245\n",
      " 225  31 107 179  98 227  46 183  30 247   5 113 214 151  92 191 105  17\n",
      " 200 132  18  97 205  85 183  87 129 140  44 248 232  58 188 248 221  18\n",
      " 138 219  99  79  94 245   1 216  42  28 209 173 174 111 174  88 146  92\n",
      " 221 187 177 166 158 135 161 244 197 128  73 214  62   8  25 239 109 221\n",
      " 149  99 244 179  45  26 119 197  34 235 243  67  10 210 101  55 211 236\n",
      " 206  30 138 247  25   5 126 137 171 109  49 182  98 218 138  95  79 152\n",
      " 116   2 126 105  16  37   6 108 144 196 106  14  57 183 124  44 214  13\n",
      "  78 144 252  23  92  16 209 200  46  54  83 146  93 217 186  23 148 202\n",
      "   6   1 243 163 214 241 217   6 208 163   3 215 130  89  22  83  78 216\n",
      " 153 108  72  97 207 241 129 129 136 220 204 213 228  11  58 203 173 107\n",
      " 180 243  78  72 149  19 253  96 186 132 240  57 140 177 156 232 188 154\n",
      " 232 202  70 232 251  64  57 143 217  25  63 146 168   2 237 116 174 192\n",
      " 215 183 206 151 135 215 151  81 121 212 174  78 176 195 116 171 240  38\n",
      " 128  63 127 214  86 213 165 230   5 250  53 115 155 195 128  58 159 186\n",
      " 213 102  84  25 167 199 255 226 249  86 104 151  68  47  38  84 182 209\n",
      " 132 156 178 223 137 230 184 149 230 134  36  72 111  75 124  97 105 131\n",
      " 176 187 122  14  20  41  15 103  74 245  59  36 169  11 119  75  17 157\n",
      "  24  33  94  12 143 206  41 234 214 182  82  17 143 139 118 173 188  25\n",
      "  57 125 160 172 204  95  87  36 138  90 199 217 102   0  38  80  36  16\n",
      " 224   3 253 140 165 229  55  77 101 123 181  42   9 165 222  12 215  74\n",
      " 124 100 139  74  40 242  68 213  65 237 200 235  95 137 181 238 185 156\n",
      " 113  24 148 202  63 222  94  94 220 255]\n",
      "cb_subvector [[0.13442947 0.12380462 0.45831594 0.45509347]\n",
      " [0.32660833 0.71153903 0.71041816 0.05306678]\n",
      " [0.07291819 0.40977865 0.45885214 0.20769438]\n",
      " ...\n",
      " [0.92212445 0.8038398  0.8645476  0.30072194]\n",
      " [0.8391576  0.08952053 0.56244045 0.13210922]\n",
      " [0.08700156 0.5530435  0.63682    0.1440473 ]]\n",
      "quantized_db[:, i] [ 36 150  83  31 118  68  42  22 144 182 115  23  68  19 140 107 172  26\n",
      "  39  60  83 208 167  47  99 115 235  72  74 255 161 198  10  59  75 214\n",
      " 120  32 127  36  32  86 212  82 161 206 102 142 238 142  84  78  48 121\n",
      "  59 223 134  38 116 168  59 246  26   6 147  77 125 152 167 211 254 141\n",
      " 106 193  84  30 143  34 246 226  76 252 199   0  68   6 214  69  62  80\n",
      " 226 217  95 189 224 146 212  55 228 112  13  67 187 224   2  54 236 105\n",
      " 158 235  79  46 199 161  20 215   1  20 126 178 135 225 107 100 107  68\n",
      " 205 111  75  29 250   7  60 205  84 162  74 217  76 158 251  82 142  72\n",
      "  87 189  70 253 179  90 207  51 148 212 128 156  43 130  92  50 103   2\n",
      "  27 133 180 163 215 218 154  68 130  97 151   5 152  73  67 106  35 139\n",
      "  71  52 140 253  42  35  68 154 129 251  47 181 199 248 211  72  43 242\n",
      " 199  47 226  82  12  47 149  43 115  99 141  43  69 164 133 158 229 148\n",
      " 133 150 199 158 226  49  78 141 184 253 145 237 115  78 137  52 247  59\n",
      " 170 190 239  83 137  10 177  30  15  91 173 205  69 240  48 176  92 225\n",
      " 252   9 152  14 189 118 136 216 246 101 122 110 110  35 139 138 155  45\n",
      " 107 103 178 223  21 230 205  46 249 125  33 246 249 134 198  95 226 163\n",
      " 217  46 171  82 172 120 150  43 152  77  61 235 116 127 194 185 171 141\n",
      " 147 222  55 188 217  63  60  92 219 218  51  20 124 110  87 113 159 130\n",
      "  37 238 194  14 209  88 154  68  33  87  77  36  52  27  24 145  47  66\n",
      "  65 230  26 112 201 216 117 253  21 229  25 112  12  42  50 167 108 184\n",
      " 235 190  91  27 174 102  49 228 120 116  40 225   5  68 166  23  84  43\n",
      " 214 142 207 245 220  74 188 233 254 160 209  28 247 216  12 246 183  38\n",
      " 193 107   1  86  79  44 208 100  30 250  89 220  19  90  77 189  46 138\n",
      "  60  51  33  42   9  29  17   7  93 146 126 122 174 225 203  24  77 153\n",
      "  15  79  79 202  55 195   0 135 162 140  26 211  85 219 208 192   7 206\n",
      " 223 114  93  10  71 155 122 170 140   4  99 251  79 147  40 228  68 192\n",
      " 249 125 249 210 162 133 220  71  27  11 205  89  37   8  56 197 149 148\n",
      "  32 210 227  85  58  84 143 114 207  55  16 181  22  23 166 209  45   9\n",
      " 194  30 255 186 191 198 246 110 234  54  87  94  49 229 182  29 103  40\n",
      " 111 105 125  30  20  22 151 234  20  74  63 148 179  71 239 110   0  48\n",
      " 147 188 175  72 114  88 243  53 126 140  64 112  79  24 247 229  93  60\n",
      " 155 201 127  52 194 153 218  16  98 185  66 195 179 252  74 157 163  13\n",
      " 192  65 235 107 192 254 134 139 110 226  73 211  30 242 236 116 231 140\n",
      " 201 182 140  85  16 161  28 177  57  78 188  49 245 104 195  39  47 123\n",
      "  64  11 195 217 110 227 102 220 104  60   5  44 214 114 154 179   1  17\n",
      " 200 191  18  97 207  43 183  24 212 156  44 248 232 214 204  44  68  46\n",
      "  61 172  34  99  66 245   1  11 144  43 118  63 174 125  21  88 179 126\n",
      " 221 187 177 250 188  12 107 244 197 128 198   1  62 133  98  50 159 140\n",
      " 149 154   3  92  20 168  80  51 116  13  75  77  10  64 101 180 114 166\n",
      "  37  10 230 247  25  68 126 129  64 109  49 182  88 218   0 252 110 247\n",
      " 129 167   5 148  25 254  25 166  33 196 133 245 190 212  74 151 253 138\n",
      " 132 186  58  77  92  43 209 142 246   4 195   9 149  59 144  95 172 254\n",
      " 128 252  35 113  25 241 217   6 118 137   3   1 147  89  47 220 134  16\n",
      " 153 108  19  13 245 144 129 201 136 103 204 145 229  11  14  10  12 176\n",
      " 123  63 157   4  37 161 126  96 186 189 133  57 242 226 194 140 202 215\n",
      " 238 196 108 154  37  87  46  42  35  43  34 166 168 215 225 221  93 117\n",
      "  33 133 206 153 135 185 118  81 244 123 174  78 176 152 226 212  94 182\n",
      " 129  48 160   5  69 122 148 130 146 250 173  39  53  38 255  58 225 168\n",
      " 213 140  44  46 195  49 105  88  65 170  29 214  99  14 180 157  69  25\n",
      " 170 253 178   3  12  31 184  65 250 134 228 152 170  28 126 195  43 131\n",
      "  34 170  89 206 124 226 163 103  88 207 172  36 169   8 119  22 142 152\n",
      "  24  33  83 128 139 137  41 234 174  78  82 132 143 231 252 173 159 109\n",
      "  75 156 160  69  28 126  75 186 138  90  69   1 102 250 100  80  42 149\n",
      "  90 118 253  95 165  89  20  77  97 123 204  42 132  24  74  60 253  31\n",
      " 124 180  62  89  91 132 190 168   5 237 222 197  95 137 156 238 185  71\n",
      " 113  77 253 202  56  30  94 244 201 156]\n",
      "cb_subvector [[0.6963496  0.8338278  0.714929   0.50802463]\n",
      " [0.6733544  0.77451885 0.16564342 0.7951397 ]\n",
      " [0.58519065 0.15896106 0.736495   0.04975501]\n",
      " ...\n",
      " [0.4962446  0.15467119 0.9277474  0.48806322]\n",
      " [0.08019666 0.2967527  0.52355367 0.3526515 ]\n",
      " [0.25865564 0.34977373 0.4248186  0.25855908]]\n",
      "quantized_db[:, i] [148 104  80 246 118  68 128  43 144 163 172  98 148 133 191  85  75 204\n",
      "   5 175  75  32  33  47 175 115  31 244  74 255  87  97 111  59 132 130\n",
      " 184 183 127  23 255  23  88  19  57  35  54  77 130 160 138 174 250 121\n",
      " 129 240  45  38  95 143  27 246  38  77 207  54 164 183 183  88 210 231\n",
      " 215  85  84  50 138  34  51 209  76  69 169   0 240 107 116 157 192  92\n",
      " 193  96  77 213 224   7 236  80 228  45  93  67 207 221   2  53 236   0\n",
      " 148 118  71  74 241 161  20  60 111 219 148  16  85 147 107 118 245 179\n",
      " 241  96  75  29 193 136  72 205  89 162 196 233 141 158 251 118  10 240\n",
      "  59 189  70  98 179 246  88  51 102 239   0 156  74 130 170  50  98 117\n",
      "  27 248 180 163 227 123 154 161  81 126 146 139 152  43  58 106  64  81\n",
      " 189  62   1 122 214  35 136 211 237 209 118  32 199  58 211  72 222 182\n",
      " 176   1 233 195  12 166 196  43  68  27   6 167 214 164  62 132   6 148\n",
      " 133 150 215 144  74 179 237  55 143  13 145   7  23 191 241  52  38 177\n",
      " 189 190 184  83  98 134  40  30  15 119 181  11 247 240  57 142  11  43\n",
      "  28 201 132  14 182  20  28 216 146 109 154 115 155 100  33 173 148 122\n",
      " 176 230  75 113  40 230 229  84  68 125  75 156 121 119 198 219 243 180\n",
      " 212  46  13  82 172 192  90 152  38   4 228 122  15 243 225  95 171  67\n",
      " 147 222  55 188 161  76  63  74 211 250 170  28   5 214  37 250 159  21\n",
      "  33 210 194  54 207 212  38 201  62 134  19  43 243 243  33 108 183 167\n",
      " 107 154  79  45   7 190 182  67  21  14 222 229 165 183  90 151 229  95\n",
      " 235  87  91 220  15 190 170 111 120 172  40 225 226 165 166  23  35 247\n",
      "  82   2 207 186 220 251  80 233 106 217 209 247  43  38  87  75 186 163\n",
      " 193 241  66  86   0  40  12 100 224 189 164 164  19  11 169  17 152 193\n",
      "  83 171 148  72 211 255 116   7  79 146 103 240 142 166 203 112  52 134\n",
      "   0  86  89 194 232 255 187  28  29 127  26  48 125 249 223 197  39 160\n",
      " 191 251  93 193  71 155 122 170  68   4 119  88  79  16  34 178 159 243\n",
      " 194  79 249 210 137  28  99 159 202 197  17 244  37   8  56 173 182  23\n",
      " 166 161  33  57  61  51 175 167 209 214  27 181 138 130 194 211  45   9\n",
      " 213 186   3   3 109 169  23  32 124  54  87  30 226 192 229 150 204  49\n",
      " 111  48 101 126  91  22 151 253 196 210  63 253 196 237 239 101 182  48\n",
      "   2 122 175  17 171  29 243  53  30 140 212  26  39 111 238 230 106 218\n",
      " 187  35   7 231  31 128  24 238  98 204  66 195 210 199  90 157  13 160\n",
      " 181  85  57  38 204 254 140 212 110 226  73  45 198 242 173 176  33 170\n",
      "  38 196  72  85  16  95 104 145  63 136 182  62 216 104  30  39 160 189\n",
      "  24  19 158 150 140 227 113 239 188 226 250  28 172 134 133 191  59  17\n",
      " 200 214  18  97  59  81 183 173 149 125  44 248 232 119  21 143 100 248\n",
      "  53 211  61 181 140 245  34  22 204 212 174  86  21 112 154  88  10 227\n",
      " 221 187 177  19  74  14  62 244 197 128 191   1  62 152 189 118  59  82\n",
      " 149  99  77  47 173  69 235  49 217 161 192 187  10 185 101   9 114 170\n",
      "  90 244  11 247  25 222 126 163 136 109  49 182  11 218 223 135 116  81\n",
      " 211 171  42 125  35 100 149 189  32 196  49 164 251 187 125 145 214  82\n",
      " 122  79   0 241  92 122 209 221 154 222 189 201  61  18  57 221 149  93\n",
      "  77  50 247 147 193 241 217   6  81 226   3 189 210  89  71  85 248 207\n",
      " 153 108  13   0 247  57 129 217 136  38 204 111 183  11 139 198  57 172\n",
      " 159 154  25  85 209 198 157  96 186 248 215  82  65 126  29  67 180 215\n",
      " 225  97  81  13 216  64  19 212 182 125   5  76 168  93 157 248 188 117\n",
      "   2  57 206  36 135   4 251  81 126 212 174  78 176 160 250  31  70 169\n",
      " 122  31 235 142 132  63 223  10 231 250  70  65 121  48  18  58   0 205\n",
      " 213 164   0 207 214 208 105 140  65  43  32  14 245  41  84 132  66  92\n",
      "  30 217 178  39 155 134 184   5 246 134 150  25  54  92  20   4 165 131\n",
      " 217 119   3  24  71  22 213 103 112  84 171  36 169  33 119 121 168  26\n",
      "  24  33 128 136  74 112  41 234 108 222  82  38 143 116 252 173  32 112\n",
      "   7  81 160 192 195  18  71 112 138  90  40  50 102 217 168  80  82 127\n",
      " 217  55 253 227 165  37 159  77 120 123 158  42 255 213 166 168 143  48\n",
      " 124  50 139  41  39 132 231  43  97 237  58 113  95 137  45 238 185  59\n",
      " 113  22 137 202 239 186  94  42 194 137]\n",
      "cb_subvector [[0.7195655  0.28739795 0.34345332 0.25828964]\n",
      " [0.21469936 0.24410442 0.68888223 0.10635319]\n",
      " [0.8307369  0.18268792 0.1701349  0.77257067]\n",
      " ...\n",
      " [0.9301312  0.68992853 0.61156815 0.78636587]\n",
      " [0.4978706  0.52237576 0.513752   0.8784852 ]\n",
      " [0.38649142 0.06994661 0.4203499  0.67937887]]\n",
      "quantized_db[:, i] [209  33  87 169 118  68 166 252 144  45 209 110  37 165  18  74 215  26\n",
      "  83 170  70 239 162  47 168 115  31 118  74 255  53 220 192  59 154  47\n",
      " 201 124 152  54 119  45  73 139  25  43 189  89 220  37  95 238 121 121\n",
      "  89  29  27  38  67 141  94 246  32 177   5 196 210 195  38 234 181 132\n",
      "  50 228  84  14 221  34 106 162  76  11 199   0 139 227  95  69  97 147\n",
      "  33   8 107  90 224 201 189 243 228 198  13  67  20 139   2  79 236 150\n",
      " 205  79 204 137 159 161  20  38 207  53 206 140 148 112 107 114 188 184\n",
      "  34  66  75  29 153  22 101 205  68 162  67  23 141 158 251 165 142  10\n",
      "  99 189 106  83 179  23 231  51 193 170 227 156 228 130  34  50  32  79\n",
      "  27  73 180 163  28 237 154 183 229  87  10   1 152  62 148 106  65  70\n",
      "  14 175  18 204 173  35  42  15 237  85  77  32 199  21 119  72 198 163\n",
      " 214 181 252  85  12  51 227  43  42  65 105  58  25 164  70 114 139 148\n",
      " 133 150 130 203 231  47 215 166   4 166 145 224  41  15 206  52 195 159\n",
      "  99 190 141  83  87 171 164  30  15  35  61 184  66 240  44  27  80 175\n",
      " 120 201 243  14  21  31 167 216 101 232  40   4 220 141 196 157  60   8\n",
      " 104 215 116 132 255 230 156 111  51 125  38 177  50 185 149 176 174 108\n",
      "   4  46 255 107 172 232 135 206 209 245  61 214 130 253 160 136 171 191\n",
      " 147 222  55 188 198 105 240 146 133 226 109 211 189  19 173   2 159 134\n",
      " 242  77 194  16 155 222 167 165 132 173 144 220  14 171 220  93   4 167\n",
      " 194 179 170 242 164 134 172 214  21  35  55 118 181  66  43  59  85 168\n",
      " 235 209  91  27 208  84  86  66 120 116  40 225  37  24 166  23  98 255\n",
      " 178 171 207  50 220 245  93 233  34 251 141 125 219 130 196   1 105   9\n",
      " 193  40  67  86 234 188 208 100  39 192 125 241  19 131 131 194 105 207\n",
      "  60  89  60 217 248 167 194   7 103 146  43 158  43 246 203 132 171 130\n",
      " 229 255  15 157  37  43 188  60   6  41  26  61  73 219  92 172 171  30\n",
      " 223 130  93  53  71 155 122 170  86   4  59 182 136 218 212 175 188 251\n",
      "  33 179 249 210 123   8 211 245 122  80 133 254  37   8  56 162  51 164\n",
      " 146 129 226  33   5 105 245 128  11 160  82 181  90 198  73 216  45   9\n",
      " 132 129  49  96  59 146 248 111 114  39  87 209 205  98 181 130  37  76\n",
      " 111  66  79 232 130  22 151  22 128 176  63 137  29 181 239  54  30  48\n",
      " 190  48 175 220  10   6 243  53 133 140 110 112  36  11 193  55  84   4\n",
      " 100 167 231 231 247 199  58  19  98 136  66 195 204 224 204 157  79  34\n",
      " 214 125  55 205 192  46  99 200 110 226  73  12  81 242 177 135 123  11\n",
      " 221 143  30  85  16  23  28 241 252  44 175 239 100 104 245  39  46 115\n",
      " 196 109 192  74 186 227  25  35  43 200 128 151 214 189 204 191 171  17\n",
      " 200 133  18  97 104 183 183 117 218 254  44 223 232 210  39 171 102 183\n",
      " 232 107 157 115 224 245 170 147 220  28 217 214 172 154 108  88 181 170\n",
      " 221 187 177  70  14 222 160 244 197 128 120   1  62 122  51 100  69  96\n",
      " 149 235 121 234 209  21 222 183 228  35  90 114  10 162 101  98 114  60\n",
      " 250 217 121 247  25  63 126  60  10 109  49 182 106 218  95 242 211  31\n",
      " 127 186 227 218 116  11 147 101 118 196 210 144 239 194  68  77  60 161\n",
      " 168 184 156  91  92  60 209 204 189  85 112  24 216 223 251 239 250 134\n",
      "   0   1  72   6 177 241 217   6 191 175   3 239  99  89 184 193 196 131\n",
      " 153 108 139  54 101  50 129  99 136 245 204  33 139  11 240  15 176 249\n",
      " 165  43  66  31 165 166 148  96 186  34 220  57 178  68 154 108 192 215\n",
      " 223  60 179 168 199  64 183 247 162 148 231 116 168 110  64 221  62  39\n",
      " 150  52 206 103 214 226  74  81 255 212 174  78 176 156 196  21 191  95\n",
      " 233 231 229 210  56 199 119 148  33 250 137 253  47 236 182  58 126 245\n",
      " 213  24 201  32 179  32 105 204   3 214 101 108 214 144  12 250 145 189\n",
      " 168 173 178 126  69   6 184 194 127 134  74 167 134  60  66  79  93 131\n",
      "   0 136  41 186  59  30 133 103  49  60 216  36 169  40 119 137  33 236\n",
      "  24  33  34 252 161 117 187 234 114  24  82  94 143 208 252 173 210  44\n",
      "  46  41 160  32  32  86  26 241 138  90  48 179 102  16 103  80 213 156\n",
      " 109 186 253  10 165 172  24  77  38 123 181  42  24  52 107 244 240  12\n",
      " 124 195 139 110 219 132  45 105 232 237 203  76 210 137 242 238 185  81\n",
      " 113  53  83 202 135  38  94 212  93   8]\n",
      "cb_subvector [[0.28887483 0.60105604 0.10748484 0.4291707 ]\n",
      " [0.70469326 0.92085975 0.69148153 0.5322373 ]\n",
      " [0.04259827 0.6750641  0.82659584 0.78836495]\n",
      " ...\n",
      " [0.16555834 0.6315919  0.4639566  0.5106392 ]\n",
      " [0.16634436 0.02445519 0.16248743 0.849027  ]\n",
      " [0.36825833 0.29534876 0.9277859  0.3920556 ]]\n",
      "quantized_db[:, i] [233 118 178 200 118  68 134  70 144 196 137 223  91  79 146  13 179 142\n",
      "  37 221  32 207  57  47   3 115  31  87  74 255  20  76 212  59 245 176\n",
      "  86 253 127  48 218 152 102 101 188  28  91 152 149 218 234 241 169 121\n",
      " 130  67  67  38 175 121  90 246   5 160 142  98 119 142 234 245   5  76\n",
      "  41 207  84  15  47  34 144 223  76  72  53   0  18 154 148  69 228 239\n",
      " 128 255 181 141 224 142 191 159 228 206  13  67 138 172   2 198 236  49\n",
      "  56 161  64  37 225 161  20 113 120  48 190  35 250 215 107 115 221 253\n",
      " 184   7  75  29 136 228 235 205 183 162 175 217 141 158 251  79 242   8\n",
      "  94 189  70 119 179  40 245  51 213  62 240 156 210 130 160  50 209 200\n",
      "  27  74 180 163 166 220 154 241  24 110  78  57 202 160  93 106  97 199\n",
      "  90  54 151 119 243  35  40 219  31  65  16  32 199 123 211  72  91 225\n",
      "  15 233  49 246  12  35 177  43 196  20 151 179 177 164 135 172  77 148\n",
      " 133 150 118 245  57 156 104 135 165  57 145   8 184  13  72  52  21  81\n",
      " 126 190 107  83 149  40 107  30 183  63  17 240 230 240 254  88 209  10\n",
      " 133 205 103 113 157   9  92 216  31  68 250 226 253 246 234 125 236 122\n",
      " 206 206 248  17  21 230  35 165 217 125 225 180 236 124 198 188  24 145\n",
      " 237  43  71 122 172  97 130 134 165 175  49 187 163 214 203 103 171 203\n",
      " 147 222  55 188 168 214 214 142 124  79 148 251 225 152 231  46 159 217\n",
      " 162 181 194  10  40 172  84 156 102  60  38 214 192  58  86  81 106 167\n",
      " 173 204 111   9 232  62  62 161  21  62 203 142 115 133   9  53 229 168\n",
      " 235 137  91 141  74  88 174 171 120 116  40 225  76 153 166  23   4  10\n",
      " 195 102 207 231 220  60 134 233 171 213 147 231  85 102 185 217 200 112\n",
      " 193 248  40  86 142 242 208 100 226  42  52 193  19 218 146  87  52  26\n",
      "  60 210 103  31 140  81  21   7  82 120 222  35  20  28 224 149 253 242\n",
      " 153  41  31 133 243 192 148  74  71  31  26 165 235 219  57 137 131  32\n",
      " 223 162  93 146  71 155 122  90 210   4 207 219  79 137 164 218 141  30\n",
      " 226 149 136 210 145  92 142 109  28   0 172  43 234   8  56 218  46 127\n",
      "  17  40 142 230   8  34 189 226 218 112 137 181  17 113 201 173  45   9\n",
      " 153 168 166 120  90  42  36 174 196  93  87 252 160 112 236 248 171  26\n",
      " 111 143 115 189 132  22 151  10 154 246  63 223 234 139 239 113 235  48\n",
      "  22 203 175 147 110 244 243  53 188 140 204 112 178 197  59   2 245 199\n",
      "  57  25  87 231 172 167 112  68  98  98  66 195 180  32 228 157  19 128\n",
      " 148 243  73 201 192 254 170 149  10 226  73   8  96 126 140 151 196  48\n",
      "  97 190  91  85  16  38  96  52 171  65 177  75  30 104  27  39  94 254\n",
      " 241 110 195  39  77 227   5  63 170 152   5 255 214  78  25 191  16  17\n",
      " 200  46  18  97 197 109 183 181  97 151  44  34 232 141 191 189  58  18\n",
      "  33 229 182  64  13 245  53  44  69 108  84 110  46 178 191  88 227 215\n",
      " 221 187 177 197  18  96 116 244 197 128 109   1 254 157 248  62 207  15\n",
      " 149  99  69  56  49 135 236 223 240  53  66 156  10 151 101 188 114 221\n",
      "   7 254 153 247  25 200 126 115 179 109  49 182 254 218  14 111 167 206\n",
      " 157  61 212 123 170 150 229  51  86 196 153 171 166 199 197 223 173 115\n",
      "  89  79 215 238  92 133 209  97  82 185 114 116  88  44  17 180  97 132\n",
      "  76 221  21  94 246 241 217   6 237 241   3 164  76  89  73 117 189 210\n",
      " 153 108 119  13 253 101 138   3 136 171 204 169 105  11 221 139 169  91\n",
      " 247 236  36 200   4  15 245  96 186 183 200  57 154 228  91 107 229 215\n",
      " 148 209  63 245 129  64   8 184 210 224 118 170 168 195  37  20 118 117\n",
      "  29 129 206  25 135 241   4  81 241 212 174  78 176 142  60  22 168  56\n",
      " 255 118 228  75  44 255 218 242 184 250 193 213 253  17  97  58  80 148\n",
      " 213 137 182 251  92 167 105 119 202 172  70 249 169 214  96 253 163  54\n",
      "  64 190 178  14  79 215 184 217 115 134  73  94  24 177 143 101 233 131\n",
      " 124  12  52 127 217 137 158 103  48 188   4  36 169  37 119 135  28  19\n",
      "  24  33 239 143 179  47  41 234 199 245  82 157 198 221 252 173 118 211\n",
      " 169  93 160   1 148 145  25 212 138  90 196  72 102 249  53  80 137  61\n",
      "  71 110 253 168 165 176 165  77 182 123  40 202  15  44 235 129  27 229\n",
      " 124 214 139  79 213 132 226  47  37 237 137 224  95 136 181 238 185  98\n",
      " 113 102  26 202 196 157  94 237 173 232]\n",
      "cb_subvector [[0.47501484 0.55036527 0.41334134 0.31435907]\n",
      " [0.355122   0.76072395 0.4987592  0.05762229]\n",
      " [0.71932536 0.9488119  0.43133318 0.9430321 ]\n",
      " ...\n",
      " [0.5229676  0.91120434 0.6011166  0.21637502]\n",
      " [0.45010534 0.3622273  0.30668244 0.2704652 ]\n",
      " [0.86337817 0.65106976 0.31374404 0.69892466]]\n",
      "quantized_db[:, i] [121 196 234 223 118  68  74 158 144 220  11 105 153   9 239  16   4 120\n",
      " 174  38   3 162 213 229 207 115 181 161  74 255 139 167 205  59  12  72\n",
      " 225 170 127 170 184 227 217 209 179  30 111   3 160 167  53 193 178 121\n",
      " 119  42 122  38  63 165 191 246 221 240 184 235  25  61 162 159 122 239\n",
      "   6 224  84  82  64  34  27  80  76  84 131   0 140  19 147  69  35 137\n",
      "  90  91 143 150 224  91 147 225 228 243  13  67 132  14   2 194 236 109\n",
      "  22 135  45 197 252 161  20 101  78 101 166  52 155 237 107 186  83 231\n",
      "  71 147  75  29 116 208 188 205  35 162 246 172  88 158 251 150 142 105\n",
      "  70 189  70 122 179 101 242  51 176  30 221 156  62 130 193  50 250 108\n",
      "  27 130 180 163 173  30 154 106 100 109 130 240 152 183  61 106  10 183\n",
      " 197   2 251  30 101  35  44 178  34  49  80  32 199  72 211  72 145 222\n",
      " 209 103 114 170  12 144   0  43 241 145 240 237   0 164 140 252  75 148\n",
      "  36 150  52 130 254  34  93  78  47 184 145 129 227 237 239  52 206 212\n",
      " 200 190 111  83 249  96  94  30  15 198  67  13 249 240  35 194 162 198\n",
      " 211 192 144  14  90  22  94 216 200 197   6  53  36  76 232  16  63 208\n",
      " 127  33 243 110  51 230  25 177 107 125 204 154 211  15 198  34 243  44\n",
      " 142  46 234 113 172  96  61 234  16 248  61 134  56  22 232  77 171 188\n",
      " 147 222  55 188 160  36 129 113 253 148 211 125 117 221  97  80 159 212\n",
      "  88  66 194  58  95 223 127 210 202  68  57  47  94 206  51 245  68 167\n",
      "  43 107 224 229  76 137 147 159  21 252 249 157 124  16  83 139 229  77\n",
      " 235 155 252 174  96 195  33 206 120 116  40  92 254 180 166  23 225 148\n",
      " 116 186  60  13 220 203  90 233 100 136 219 223 230 147  24 249 104 182\n",
      " 193 183  27  86  80   2 208 100 222  91 162  30  19 253  44  77  49 213\n",
      "  60 166 183  34   6 150 109   7 225 146  68  16 164 204 203 112 205 198\n",
      " 229  19  71  28 173 132 219 149 213  61  26  38  43 219 200 157 133 157\n",
      "  36 154  93 130  71 155 122 170 173   4 208  78  79 188 225 209  69 208\n",
      " 247  42 140 210 111 170 239 233 138  53  46 207  37   8  56 123 104 180\n",
      " 111 245 129 224  31  81  27 120  15  69  23 181 100  10  38  30  45   9\n",
      " 172 149 238  55 250  46 122 188 232  54  87  53  13   6 199 125 252  71\n",
      " 111  97 168  68  81  22 151 217 143   4  63 232 118 128 239 149 193  48\n",
      " 100 221 175 215 155  25 243  53 205 140  53 112   3  15  53 232 239  88\n",
      " 171  88 184 231 216  86 111 133  98   9  66 195 223 116 184 157 111 217\n",
      " 219  39 255  15 192 254 152  53 110 226  73 172 104 242 199 125  50 143\n",
      "  69  92   9  85  16 167  28 231 112 102 109 154 120 104  57  39 138 125\n",
      " 103 148 244 254  50 227   4 242  24 230   5 146 214 186  43 191 229  17\n",
      "  76 155  18  97  97 253 183 241 231  13  44 248 232 135  92 141  60 202\n",
      " 100 251  27 248 151 245  77  19  88  12 196   6 144  31 136  88 175 176\n",
      " 221 187 177 134 177 228  51 244 197 128 243   1  62 231  63 174  20 169\n",
      " 149  99  72  10 251  64 245 168 121  13 188 175  10 111 101 156 114 142\n",
      "  47  63  80 247  25 168 126 252 173 109  49 182  15 253 139  42  86 240\n",
      "  52 211 255  21 187 122 254  50 132 196  20 229 196  82 121  52 236 177\n",
      " 186  10  12 187  92  18 209  34 109  75 166 162 118  28  12  10 121   4\n",
      "  25 105 171 143  29 241 217   6 202 239   3 144 226  89 173  50 182 239\n",
      " 153 108  30 134 209 163 129 141 136 217 204 146   5  11  72 230 191 149\n",
      " 203  37 136  92 192  67  53  96 179 229  51  57  48  61 141  63  27 215\n",
      "  61  96 245 241 137  64 180 109  21  70  38 123 168 241 105 160  43 117\n",
      " 133 117 206  27 135 225   5  81 247 212 174  78 176 199  85  42 127  27\n",
      "  70 210 245 183  91  96  49 235 179 250 149 137 245  11 180  58  96 125\n",
      " 213 125 233  47 231 227 105 228  65 216 218 251  80 254  89  19 146 121\n",
      "   4 197 178  97  49 127 184  67 252 134 200 130 129 124  30 201 145 131\n",
      " 186 233 218 222 130 211 250 103 137  64 224  36 169  77 119  83  25  91\n",
      "  24  33  81 202 123 173  41 234 252  53  82  93 143  40 252 173 204 121\n",
      " 201 228 160  20 208  66  73  22 138  90 153 197  98 109 108  80 193 103\n",
      " 192 221 253 162 165 104   9  77 231 123 114  42 174 125 247  45 123 235\n",
      " 124 105 139 214 193 132 242  45 205 237  39 166  95 137 144 238 185 196\n",
      " 113 196  68   1  75 225  94 113 203 223]\n",
      "cb_subvector [[0.4592091  0.8587667  0.8857437  0.36738455]\n",
      " [0.56676054 0.90876836 0.34257716 0.8996932 ]\n",
      " [0.32918268 0.94693244 0.11709684 0.88544536]\n",
      " ...\n",
      " [0.34580424 0.8755595  0.08732935 0.27830213]\n",
      " [0.86332107 0.8751632  0.26831913 0.23234466]\n",
      " [0.48049498 0.16511601 0.92396253 0.7800657 ]]\n",
      "quantized_db[:, i] [ 26  60 216 184 118  68  74 172 144  45   2 236 176  65 148 151  39 255\n",
      " 220 223  97 158 145  47 190 115  31 195  74 255 219 113 148  59 245 167\n",
      " 198  73 242 215   4 104  36  57 167 123 125 166  90 171 243 191 179 121\n",
      " 156 228 145  38 209 124  16 246  10  88 175 205  46 135 156  12 192 244\n",
      " 244 202  84 231  19  34 248  91  76  77 224   0 142 184 122  69 238 219\n",
      " 142 210 136 216 224 171  53 215 228 110  13  67  32  86   2 228 236  28\n",
      " 159  37  98 164  73 161  20 232  66 123  15 118  67 112 107 140 251 237\n",
      "  17  79  75  29 212 174  53 205 124 162 156  51 141 158 251  41 142 202\n",
      "  19 189  70 237 179   9 140  62 227 176  61 156 230 130 114  50   9  78\n",
      "  27  90 180 163 188  25  64  24 179 117 124  69 152 145  15 106 159 214\n",
      "   3 229 201  74 147  35  73 186 232 254 212  32 199 172 211  72 109 174\n",
      "  73  32 168 103  12 171 149  43  58 137 206  36  30 164 246 157  48 148\n",
      " 133 150   5 127   9 173  47  63 109  19  87 212  85  90  25  52   3  15\n",
      " 227 190 193  83 218 242  87  30  15 235  42 130 219 240 170 202 196   6\n",
      " 167 201 118  14  86 100  43 216  51  48 112 139  89  82  55 171 161  86\n",
      "  40  47 185 115 139 230  47  49 120 125  56  61 118  14 198  65 134  82\n",
      " 214  46   6  80 172 254 231  65 168  39  61   1 219  61 214  53 171  88\n",
      " 147 222  55 188 126 250  93  67  47 164  90 169 218  59 200 143 159 162\n",
      "  13   1 194  31 245 132  95  80 203 171 162  33 159 211 247 215 157  77\n",
      "   1 114  65 227 167 177  78 105  21   7  18  46 133  78 179 247 229 246\n",
      " 235  99  91   8 143  80 116  93 120 116  40 225 213  99 166  23 242   9\n",
      "  27  80 207 183 220 211  98 233 100 191 189  50  88  16 200 124 197 223\n",
      " 193 157 122  86 145 248 208 100 187 104 206  17  19  54 102 218 194  22\n",
      "  60 172 121  30 158  99  58   7 206 146 150 183 245  81 195 199 133 100\n",
      " 111 245 164 191  89 124 142 149 163 132  26 201 138 162  51 211 104 113\n",
      " 186  60  32 212  71 155 122 170 227 252  98 115  79  61  26 173 196 118\n",
      " 102 240 249 210 186 218  91   3 197 133  38  73  37   8  56 219  15  32\n",
      " 126 120  93  12  98 233 131 216  81  47 249 181 184 104 243 120  45   9\n",
      " 191 227 162 227 158 112 120 124  98  54  87  90 185 109  46 139 234 151\n",
      " 111  22 126 111   7  31  97 212  11  14  63 113 224  46 239 180 148  48\n",
      "  67  12 175 116 207 130 243 117 118 140 185 112 116 190  52 168  51 150\n",
      "  73 150 185 231  95  14 145  73  98  28  66 195 118 185 169 157 118 213\n",
      " 225 133  60 203 192 254  32 237 110 226  73  69 183 242  18  48 251 102\n",
      " 190  47   6  85  16  86  28  98 255  35  41  60 157 104  12  39 241  44\n",
      "  69  98 210 131  76 227 161  80  48  69   5 171  97   7 181 191 245  17\n",
      " 200 225  18  97 102  68 183  55 145 131  44 248 232  78 105 110  49  25\n",
      " 226 224  55  36 214 245  79 113 121 102 218 156 131  86   9  88  37 151\n",
      " 221 187 177   9  51 154 229 244 197 128  37   1  62 227 151  37 127  35\n",
      " 149  99  54 177   7 132 156 254 114  97 245 155  10 171 101 253 114  46\n",
      "  81 231 175 247  25  48 126  18 235 109  49 182  45 218 255 150 166   2\n",
      "  48 146 132   2 121 136 202   0  24 196 225  60 254  38 177 223 143   1\n",
      " 227 130 175  95  92   4 209 111  55   6  17 140  99 118  16 188 224 188\n",
      " 201  51 135 120  32 241 217   6  95  96   3  14 154  89  98 154 236 172\n",
      " 153 108  66  67  30  89 129 229 136  19 204  37 250  11 222 111  33  74\n",
      " 107  99 142 163 218 172  66  96 186  92 110  57 126 122   0  65 116 215\n",
      " 242 176 139 126  21  64 138  24 157 197 151 110 168 245 191  87 224 117\n",
      " 209 150 206 160 135 131 208  84  49 212 174  78 176 131  27 137  62   6\n",
      " 108  77  80 193  67 207  18 164 104 250   3  69 162 159   3  58  41 179\n",
      " 213 149 236  11 244 244 105 128  65  22  32  15 185  11  96 162  81  17\n",
      "  28 127 178 225  66 121 184  55  72 134 187  68 249 184  12  37 102 242\n",
      "  17 117 117 228  72 198 203 103  38 231 234 194 169 173 119 161  42 170\n",
      "  24  33 212  78  79 150  41 234  45 243  82  39 143  18 252 173 158 140\n",
      " 100  54 160   4  50  54 138  76 138  90 222 102 102 241 179  80   3  85\n",
      "  99  33 253 199 165  60 116  77 198 123 198  42 175 119 237 113 171 165\n",
      " 124 178 139  55 245 132 248 238 109 237  21 201  95 137 210 238 185 131\n",
      " 227 142  52 202 163 148  94 200 254 198]\n",
      "cb_subvector [[0.5520482  0.12159637 0.3511673  0.40702224]\n",
      " [0.6826325  0.5585772  0.6332005  0.11277686]\n",
      " [0.8804712  0.91169214 0.10389958 0.58840996]\n",
      " ...\n",
      " [0.44116107 0.8816762  0.68338597 0.46143237]\n",
      " [0.5591763  0.1729868  0.45883197 0.84136957]\n",
      " [0.24179785 0.85866773 0.6018988  0.619183  ]]\n",
      "quantized_db[:, i] [ 70 203 198  37 118  68 218 103 144 116  54 156 169 177 238 131 188 241\n",
      "  80 146  50 184 224  47   7 115  31 183  74 255 230 140 130  59  29  27\n",
      " 180   8 225 101 214  58 198 114 166 249 191 128  36   1 209 213  53 121\n",
      "  98 170  31  38 188 146 121 246 200 117 212  12 132 195  25   5 143  12\n",
      " 220  11  84 134 188  34 177  75  76   8  58   0 144  64 143  69 244 234\n",
      "  68  92  31 242 138  39 127  97 228  10  13  67 216  24   2 190 236 146\n",
      "  32 190 171 180  23 161  20   7 110 100  75 247   3 219 107 147  74 221\n",
      "  52 122  75  29 238 163  34 205  52 162  66 118 141 158 251 163 142 221\n",
      " 249 189  70  37 179 145 140  51 250  45  98 156 234 130  28  50  68  32\n",
      "  27 244 180 163 190   7 154  93 115 192   8   1 152 223 243 106  18 208\n",
      " 252 198 252 134 121  35 100   8 139  42  13  32 199 212 211  72  57 211\n",
      " 194 146  31 191  12  16  71  43  88 114 170  91 130 164 137 123 162 148\n",
      " 133 150 238  39  46 222  28 178 164  91 145 208 189 217 215  52  89 115\n",
      " 164 190  15  83 220   0  17  30  15  42  34  11   1 240 245 156 212  85\n",
      " 197 201 217  14 145  25 143 216 119  99 165  47 178  16 175 185  83  27\n",
      " 105  23  45  27  48 230 245 162  76 125  65  47  78 252 218  43 235 116\n",
      "   3  46 168 158 185 210  40 205 206  67  61 191  66 157 206 164 171   2\n",
      " 147 222  55 188 247  52 217 167 127 112 216  71 177 191 142  40 159 138\n",
      " 168  81 194  14  94 247 136  11 100  71  77  51  40  70  91 233 202 167\n",
      " 197 142 196 242 139 228 224 180  21 162 147 233   3 191   3  11 229 145\n",
      " 235 233  91  95  93 242 121  34  90 116  40 225 223  83 166  23 252  83\n",
      " 203 109 207  52 220 117 122 233 195  25 122 198  65  64 205   1  69 248\n",
      " 193   5  34  86 249 213 208 100 179 103 240 177  19  19 225  98 112  69\n",
      "  60  57  14 241 142   0 238   7 195 146 215 179 186 201 203 104  70 186\n",
      "  54 132  35 242 164  57  10  50   0 191  26  87  98 219 157 169 150  14\n",
      " 223 112  93 228  71 155 122 170 188   4 204  78  79  69 241  87 197 188\n",
      "  21 172 249 210 113  14 221 222 220  27  85 160  37 138  56 149 150 124\n",
      " 144 124  87  75  54  77  35  79 113  23 156 181  81 254 170 188  45   9\n",
      " 154 193  60 244  78 116   1 234 166  66  87  59 178 206 113 202  35 133\n",
      " 111  36   1  67 122  22 151 247 186 176  63  78 183  75 239  24  17  48\n",
      "   6 221 175  67 126 158 243  53   0 140 151 112 168  88  34 202 133  68\n",
      "  99 214 103 231 168  60 140 135  98 125  66 195  57 121  12 225 130   3\n",
      "  41 193 134 126 192 254  32  13 110 226  73  68  21 242  18 157 184 209\n",
      "  55 208 157  85  16 236  28  61 213 236 253  25 192 104 245  39 239  50\n",
      " 145 103 252 115 254 227 189 116 245 230   5 106 214  12  41 191 136  17\n",
      " 200 252  18  97 198  76 183 191   2 131 125 248 232 102 208  67  59  48\n",
      "  10 100  85 138  49 245  51   6  59  37 141 110  25  24 249  88 189 215\n",
      " 221 187 177 157 140  11 107 244 197 128  99   1  62 116  29 255 115 127\n",
      " 149  99 209  19 104 247  39 160  49 191 233 117 151  55 101 195 114 165\n",
      " 216 120  49 116  25 148 126 150 235 109  49 182 212 218  97 193 131 101\n",
      " 175  69 233 149  92  91 167  34 162 196   8  55 215 115  19  55 158 109\n",
      " 245 241  43 111  92 155 209 185 191 183 120 130 205   1  26 180 230  89\n",
      "  20 238 109  61 231 241 217   6  93   5   3   8  53  89  64 237 129 148\n",
      " 153 108 128 185 169 155 129 142 136 149 204  46 175  11  22  64  25  80\n",
      " 117  52 116  87 202 244  93  96 186  52 104  57 208  35  54 211 218 215\n",
      "  35 150  15 245  24  64 208  43 244 149  49 234 168  59 189  26  42 117\n",
      " 117 127 206  74 135  11  49  81  32 212 174  78 176  76  72 140  44   8\n",
      "  98 237 212 223 193  13  28  36 113 250  60 211 103 242 102  58 188  76\n",
      " 213 130 247 183  48 138 105 235  65   6 202  97   1  39 182 132  49 104\n",
      " 122 141 178 194 154  67 184  80 101 134 193  93 206 242 144 239 233 131\n",
      " 186 157 131  65 188  49  40 103 197 249 160  36 169 254 119 160 248 113\n",
      "  24  33  22 238  79  11  41 234  81 240  82  15 143  52 252 173   8  74\n",
      " 241 140 160  81 205 200  96 142 138  90 210  34 102 138 181  80  44  65\n",
      "  39 138 253  47 165   7  53  77  20 123  89  42  88  52 181  48 193 110\n",
      " 124 198 139 195   8 132 239 168  62 237  99 251  95 137  35 238 185  52\n",
      " 113  83  22 255 104  79  94  86 172 143]\n",
      "cb_subvector [[0.891726   0.1322191  0.4752884  0.9058216 ]\n",
      " [0.9295313  0.88036096 0.923099   0.08827676]\n",
      " [0.14498484 0.78893495 0.1191548  0.08153899]\n",
      " ...\n",
      " [0.8933141  0.90085006 0.37813812 0.1145255 ]\n",
      " [0.8536252  0.39631614 0.79152143 0.11079685]\n",
      " [0.07587667 0.71969444 0.04073702 0.78407604]]\n",
      "quantized_db[:, i] [ 32  71  61 152 255  68 199 204 144 194 235 146  96  67  63 248 252 189\n",
      " 116 193 113 143 250  47 126 115  31 208  74 255  71  19  85  59 125 211\n",
      "  72 227 127  37 140  29  63  35 211 133  15 118  29  20 166  92 231  36\n",
      " 253 133  15  38 173 203 167 246 121  74 139 124  87 227 140 217  76 113\n",
      " 215  19  84 229  98  34 253  91  76  26 111   0 209  90 217  54  10   7\n",
      " 162  79  22 193 224 191 139  24 228  42  13 207  75 212   2 158 236 161\n",
      "  99  99 253 193  35 161  20  20 162 106 217  99 139 203 107 149 244 132\n",
      " 235 112  75  29 180  20 247 205 182 162 178   3 141 158 251 103 142 168\n",
      " 159 189  70 103 179  42 202  51 213 136  23 156   4 130 242  50 113 219\n",
      "  27  80 180  50 251 176 154  79 133  26 127   4 152 164  77 255 213 188\n",
      "  99 141  87 101 182  35 127  73 117   3 203  32 199 219 211  72 165   1\n",
      "  33  73 155 158  12 143 151  43  52 168 196   1  92 164 224 206  46 148\n",
      " 133 150  19 174 246 191 155 144 116   5 145   1  44   1  61  52 182 151\n",
      "  91 190  12  83  83 146 210  30  15  18  97 128 156 240 218 221 126 158\n",
      "  33 201   3  14  67 248  12 216 167 192  84  95 105 219  97  82 109 104\n",
      " 194 118 214 153 183 230  83 234   6 125 216  31 172 206 198  13 143 156\n",
      "  53  46 128  67 172 254 125 146  94  21  61   4  96 143  33 135 171 231\n",
      " 147 222  55 188  63  29 191  10 238 247  98   1 240 150  83 217 159 197\n",
      "  46  40 194 134  36  31  20 176  39  63 134  32 163  12  84 119  52 167\n",
      " 153  90 125 174  66  65 214  36  21  51 107 121  10  86  63  30 229  20\n",
      " 235 148  91 231 224  32 158 234 120 116  40 225 168 236 166  23 244 236\n",
      "   3   7 207  67 220 123   5 233  46  58  23 214 236 193  81 222  87 249\n",
      " 193  40 124  86 212 105 208 100 175  50  16 164  19 236 200 212  89  40\n",
      "  60  90   1  26  66 227 221   7  18 146  62 151 216  36 248 209 159 119\n",
      " 162 236 219 117  76 193 103 134 114 195  26  43  92 219  55  61  90  43\n",
      " 223  95  93 163  71 232 122 170 171   4 139 108  79 124  11  39 155 233\n",
      " 128 111 249 210 236  63 116 175 237 170  54 178  37   8  56 255  16 216\n",
      " 125 159 234 214   3  68  94 159  91 198 149 181  11  65  77  62  45   9\n",
      " 132 171 173 194 203 165 235   7 158  54  87 171  47  30 133 251 181 227\n",
      " 111  31 171 171 245  22 151 133 159  64  63 101 102 206 239  87 253  48\n",
      " 188  75 175 176 240 191 243  53 219 140 104 112 185  69  97  96 205  38\n",
      "  78   0  56 231 186 209 101 195  98  69  66 195 222 108 241 157 230  90\n",
      " 253   4 238 116 192 254 214 182 110 226  73 144  81 242  35  70 246  23\n",
      " 130 132 192  85  16 150  28 178 242 190  32 192 144 104  17  39 126 111\n",
      " 145 246  31 116 188 227 215  99  53  86   5 159 214 143  15 191 187  17\n",
      " 200 142  18  97 129 171 183  42 208 187  44 248 232 147 145  70 119 228\n",
      " 241 165 129  15   3 245 106 117  46 194  53 240 240 233  32  88 222   0\n",
      " 221 187 177  49 185  62  87 244 197 128  70   1  62 150  46 244 104 178\n",
      " 149  99 180 110 209 123  49  61  90 129 239 198  10 254 101 221 114   2\n",
      " 210 135 213 247  25 182 126  59 220 109  49 182  40 218 208 219 203  85\n",
      " 229  66  22 105 137  71 162 227 171 196  90  30 238 186  59 182  55  28\n",
      "  34 241 198 242  92  73 209   2 106  72  11 235 152  64 175   7 164 246\n",
      "  37 234 252 235 227 241 217   6 253  95   3 238  95  89 196 175  70  43\n",
      " 153 108 151  52 222 198 129  69 136 132 204  96  65  11  51 204  81 115\n",
      " 226  62 148 155 146 239 211  96 186  83   2  57 174 173  65  52 153 215\n",
      " 101 123  95 235  85  64 156 188 110  81 226 128 168  87   5  53   7 117\n",
      "  29 185 206  14 135 246 136  81   2 212 174  78 176 224  55 126  55 118\n",
      " 187   0  63 230  97  88 230  38 105 154  59 116  95  32 214  56 203   4\n",
      " 213 108   0 169 241 133 105 186  65 159 133 150 103  99  38 222 172 126\n",
      " 150 189 178 250 101 133 184 191 194 134 136   4  33  42  71 114 125 131\n",
      "  99 204 166 127 167 229 176 103   4  89  22  36 169 112 119 201  11  86\n",
      "  24  33 158 153 108 156  41 234 213  25  82 159 143 246 252 173 198  77\n",
      " 139 150 160  29  15 186 243 126 138  90  91 226 102  45  47  80 123 221\n",
      " 103 173 253 166 165 125 118  77  71 120  54  27  71 146 235   6 173 195\n",
      " 124 190 139  76  58 132 197 198 159 237  27  28  95 137 130 238 185 228\n",
      " 113  26 153 202  33 136  94 217   4  40]\n",
      "cb_subvector [[0.45427608 0.5915948  0.09716373 0.8697847 ]\n",
      " [0.06652425 0.23879091 0.40106905 0.3320002 ]\n",
      " [0.2773882  0.8470685  0.31388244 0.5285425 ]\n",
      " ...\n",
      " [0.36465716 0.605677   0.83523965 0.80600095]\n",
      " [0.2026142  0.14240558 0.45750782 0.0836229 ]\n",
      " [0.89860934 0.18026853 0.8454627  0.9050168 ]]\n",
      "quantized_db[:, i] [182  31 152 112 118  68  80 191  20  84 158  83 111 227 141 144 220 246\n",
      " 208  15  84 178 117  47 159 115  31  53  74 255   8  20 146  59   9  20\n",
      " 121  99 127 109  45 168  59  17  94  59 241 242   4   4 174 162  93 121\n",
      "  88 126 179  38 127 180  50 246 212 197  15  42 245 115  72  47 103  90\n",
      " 139 221  84  28  33  34 150  78  76 251 135   0 100 112  36  69 192   3\n",
      " 200 186   9  23 224  50 211 140 228 229  13  67   8  93   2  76 236 158\n",
      " 139  71 126 145  27 161  20  88 217 160 235 233 114 166 107 104  11 116\n",
      " 250 188  75  91 232 145  51 205 159  60  92  35 141 158 251 166 142 138\n",
      " 254 189  70 124 179 107 209  51  40  78 149 156 223 226 247  50 191 231\n",
      "  27 201 180 163 197 154 154   8  75 235 180  81 152  26 219 106   1 123\n",
      "   0 210  39 189   0  35 246 177  48 108  80  32 199 181 211  72 201 221\n",
      "  44  76 171  21  12 221  61  43  39 162 154  33 118 164 187  40 118 148\n",
      " 133 150  76  88  59 197 187  91 132 228 145 182  82  84 146  52  18  94\n",
      "  91 190 139  83  93  33 168  30  15  12 148  48 115 240 229 103 208 194\n",
      "  95 201 186  14 182  55 217 216 185 168  49 166 129  31 230 123 248 214\n",
      " 195  66 173 157 169 230 197 121  13 125 213 169 221 192 198  82 140  44\n",
      " 221  46  89 179 172 102  16 204  92  91  61 169  93   4  30 171 171  94\n",
      " 147 222  55 188 148 100 223 207  90 210 146 133 152 189  94 162 159 218\n",
      " 133 221 194  33 156 122 100  20 255  60 153  22 116 140 154 153  50 167\n",
      "  31 138 103 181  86   7 217  65  21 159  69 175  53 112 158  71 229 251\n",
      " 235 159  91  45   3 222 112  90 120 116  40 225 101  29 166  23  73 234\n",
      " 206  68 207 165 108  29 240 233 201 171 209  48  56 177 167  25  12 150\n",
      " 232 141 255  86  62 208 249 100  63 228 217  27  19 128  60 175 133 189\n",
      "  60  55   4 192 175 181  36   7  22 146 100 103 201 246 203 158 189  84\n",
      " 157  36 169  51 131  85 114 242 254 116  26 201 152 219 253  88 236  79\n",
      " 223 206  93 255  71 155 122 170  78   4  17  96  79 245 252  14 127  85\n",
      "  16 156   5 210  93   0  26 123 171 176 130  12  37   8  56 139 151 206\n",
      " 194 120 180 175  92  75  33  10  27 103 145 181  77  89  57 179  45   9\n",
      "   0 138 125  50 152 190 201 219  93  54  87 101 203 115 121 255 160 107\n",
      " 111  17 156 157 107  22 142  97 214 153  63 221 117  17 239  29  82  48\n",
      " 252 251 175  39  65 246 243  60  93 140 146 112 101 102  81 221 206 235\n",
      " 104 202  25 231  64 230 227  84  98 233  66 195 153 193  41 157 141 110\n",
      "  95  14 146 150 192 254  85  68 110 226  73  20  29 242 168 241 122   1\n",
      " 248 242  99  85  16 163  28  89 210 154 244  27  31 104 217  39 244 130\n",
      " 127  22 191  27  87 227 132 253 247  66   5 111 214  59 182 191 113  17\n",
      " 200  96  18  97 131 239 183 152  90  71  44 248 232  88  97 189  32 244\n",
      " 217  49  80 208  48 245 182 155  60  20 227 255  67  12  73  88  75 123\n",
      " 221 226 177 186 179  25 217 244 197 128  44   1  62 203 193 213 216   0\n",
      " 149  99 112 175  52  27 220  24 101  48 230  88  10  30 101 237 114  73\n",
      "   5  85  97 247  25 166 126 215  90 109  49 182 215 218  35 243  49 172\n",
      " 123 253  31 122  21  31  80 128 231 196 245 119  87 249 111 163 155 158\n",
      " 127  55 232 217  92 108 209  74  72 101   8 183  94 117  69 111 117 250\n",
      " 246 208  14  13 131 241 217   6  23 175   3  92  37  89  34 115 230 111\n",
      " 153 108 115 104  20 220 129 246 136  13 204 242  51  11 232 110  74   3\n",
      " 183 224  25  73 174 156 180  96  58 173 237  57  40 169  17 122  52 215\n",
      " 186  55  98  57  42  64  81 115 219  34 202 186 168 155  17 236 221 117\n",
      " 131   1 215 221 135 221 133  81 126 212 174  78 176 189 193 157 155 168\n",
      "  53  70 171 248  34  82 116  92 249 134   7 119 193  81 153  58 190  75\n",
      " 204 106 248 165 102 162 105  97  65 158 186  47 175  91  59 230 183 109\n",
      "   0 111 178  14 150 198 184 122 243 134 175 144  39 121 117   9  78 131\n",
      " 125 186  66 144  93 177  58 103 252 191 154  36 169 245 119  44 144   0\n",
      "  24  33 166  70 241  63  41 234 163 217 151  52 143 188 252 173 132 106\n",
      " 172 193 160 158  52 239 228 237 138  90 105  93 102  79 190  80  95  79\n",
      "  28 183 253 230 165  82 122  77  97 123 140  42 123  52 180 195  16 154\n",
      " 124 213 139 162   3  40  93 123 234 237 217 163  95 137 202 238 185 129\n",
      " 113 109 240 202 167 249  94  97 237 245]\n",
      "cb_subvector [[0.66670024 0.58551484 0.40207955 0.27623877]\n",
      " [0.60506463 0.07957719 0.16555858 0.8660575 ]\n",
      " [0.5894882  0.23405653 0.5932584  0.73467726]\n",
      " ...\n",
      " [0.84376514 0.94594157 0.91971564 0.7033614 ]\n",
      " [0.35895735 0.5060167  0.8789832  0.40446964]\n",
      " [0.2568364  0.15699339 0.2688199  0.91966534]]\n",
      "quantized_db[:, i] [196 173 235  70 118  68 182 165 144 112 172  78   8 254 255  40 118 244\n",
      "  81 197  84   2 217 185  76 115  31  91  74 255 209  61 243  59  44 137\n",
      " 180 107 127  92  54 110 239 184  43   2 149  69  10  55  35 140 170 144\n",
      "  10  30 241  38  19  45 254 246  70 159  52 132  17 105 142  37  44  95\n",
      " 214 148  84 205 110  34 235 235  76 168 127   0  63 186 251  69  80 108\n",
      " 218 241 129 174 224  38  44 249 228   8  13  67 103   8   2 163 236  29\n",
      " 205  23 175 166 102 161  20 133 184  30 141 146  50 184 107 188 208 161\n",
      "  15 142  75  29  65 182  82  34  19 162 159  19 141 158 251 204 142  47\n",
      "  40 189  70 207 179 206 132  51  24 108 134 156  78 130 177  50 182  87\n",
      "  27   9 180 163 192 111 120 109  71  91 174 100 152  17 199 106 152  83\n",
      "  81 188  37  42  16  35 210 220 224 233 135  32 199 145 211  72 157 209\n",
      " 190  48 150 120  12 108 118  43 153 168 166  28 156 164 228 127 146 148\n",
      " 133 150  58 201 156 146 147  85 179  52 145  69  18 185 220 176  69  66\n",
      " 177 190 147  83 150 124 237  30  15  69  39  39 120 240 233 232  62  22\n",
      " 151 201 182  14  57 121 130 216 165   0 180  60  35 220  21 253 139 180\n",
      " 138 172 102  31  89 230 233 180 224 125 160 162 233  39 198 154 133 243\n",
      " 180  46 120 181 172 160 138 192   8 105  61 139   3  56  29   3  59 176\n",
      " 124 222  55 188   5 208  48 180 145 204  77  13  41  44  45 165 159 126\n",
      " 199  65 194  92  48 101  68 164 254  13 143 242 235 169 131  30 149 167\n",
      "  56 139 161 228  80 139  12  11  21 138 170 199  62  52 197 159 229  99\n",
      " 235  44  91  82 252 228  67 108 120 116  40 225  47  75 166  23 227 166\n",
      "  80 138 207 171 220 191 131 233  36 199  22  91 165  77 215   5 192 255\n",
      " 193 168 108  86 211  14 208 100 213  70 129 165  19  92  19 217  37  56\n",
      "  60 111   9  54 114  61   4   7 122  21 166 213 124 127 203   9 118 149\n",
      " 147 118 124 121 219  91 214   2 239  53 141 110 174 219 104 119 164   3\n",
      " 223  30  93   4  49 155 122 170  76   4  54 203  79  76 188 135  84 228\n",
      "  99 235 249 210 249 200  96 174 253   5  77 230  37   8  56 215  11  53\n",
      " 233  95 136 118 151 228  96 108 122 158 124 181  93 191  23 232  45   9\n",
      " 242  28 158 228  78  17 116 130 102  54  87 109 146 177 122 155  21 236\n",
      " 111 171 238   6 126  22 151  46  45  20  63 147  38 100 239 124 114  48\n",
      " 206  14 163  19 132 217 243  53  84 140 227 112  66 165 232  13 251  87\n",
      "  99  31  44 231 220 215  51 203  98 132  66 195  19 138 224 157  37  82\n",
      "  24 183 232  28 192 254 140 211 110 226  73  66 178 242  72 244  62  24\n",
      " 139  18 167  85 100  18  28 179 115 210  82  24  67 104 247  39 183 105\n",
      " 114 126 138 194 207  54 183 108 157 200   5 202 214 113  88 191 215  17\n",
      " 200 195  18  97 241 115 183 211 186  34  44 248 232 121 135  35  86 204\n",
      "  42 177 175 205  90 245 127  26  50 191  58   3 197  26  81  88 253   0\n",
      " 221 187 177 150 183  48  30 244 197 128  34   1  62 182  74 188 172 180\n",
      "  21  99  58  83 102 109 225 114 254 245  31  70  10 125 101  71 114 209\n",
      "  87 125  45 247  25 235 126  13   9 109  49 182  48 218  99 209 110 228\n",
      "  37 147  21 206 193  62  29  67 140 196 183 105  91  62  13 167 112  50\n",
      " 143  55 233  48  92 243 209 222 187  32 105 186 235  92  23 129 222  80\n",
      "  89 113 247 107 111 241 217   6  86 197   3  48 114  89  11  39  99 105\n",
      " 153 108  88  16  52 153 129   5 136 135 204 124 137  11 232 124 199 202\n",
      "  89 166  42  77 195 176 174  96 186 202 208  57 187 231  17  61 214 215\n",
      " 195  20  35 209  75  64 240 209 181  40   7 211 168  68 219  39  48 117\n",
      "  31 244 206 175 135 167   0  81 118 212 174  78 176   9 149  66 240  95\n",
      " 183 129 204 219   7  52 207  60  61 250  95 163 128 112  19  58 250 106\n",
      " 213 108  78 113   4   5 105 124  65  71 114 131 237 106 228 102 219 228\n",
      " 107 255 178 159 144 204 184 108 182 134 125 223  17 234 133  50 137 131\n",
      " 154 249 172  41 136 137 159 103 248 137  62  36 169 161 119 148  72 136\n",
      "  24 248  59 118 126 168  41 234 112 156  82   9 143 113 252 173 116  77\n",
      " 220 111 160 184   2  25 207 255 138  90 122  35 102 160 131  80 241 227\n",
      "  48  87 253  88 165 180 135  77  42 123  52  42  48 228  70 234  44 209\n",
      " 124 197 139  67 206 132  50 218  88 237  88  35  95 137 203 238 185 112\n",
      " 113  33  44 202 202 188  94 209  47  16]\n",
      "cb_subvector [[0.34071058 0.6844729  0.9160119  0.51603436]\n",
      " [0.42934567 0.8316971  0.02892122 0.5901476 ]\n",
      " [0.28299317 0.3477501  0.43844444 0.8473131 ]\n",
      " ...\n",
      " [0.12293855 0.37119067 0.17355523 0.30533442]\n",
      " [0.8973117  0.64414173 0.07301244 0.9648546 ]\n",
      " [0.35665745 0.23444311 0.18023936 0.34902722]]\n",
      "quantized_db[:, i] [230 203 206 117 118  68 234  95 144   9  76  20  29 141 194 208  95 145\n",
      " 165  52 255 159 102  47  83 115  31 253  74 255  84 159 107  59 213  99\n",
      "  36 253 127  55  36 241  25 135 244 155 115  67  13 178   9   2 194 121\n",
      " 149 196 175  38  36  99  44 246 172 110  81 248 188  65  40 166 191 210\n",
      " 171 232  84 188  62  34 237  31  76  81 255   0 245 181  62  69 245 139\n",
      " 111  78  95 108 224  92 115 131 228  18  13  67 251 143   2 163 236   8\n",
      " 253  50  95 107  70 161  20 196  42 237  31 192   5  55 107  29 166  34\n",
      " 107 196  75  29  24  83   8 205 231 162 168  85 141 158 251   8 142 202\n",
      "   5 189  70  83 179  59 100  51 203   0  86 156 107 130 226  50  40  32\n",
      "  27 203 180 163   2  86 154 237  56 153 210 135 182 254 239 106 174 153\n",
      " 118 116  88 189 227  35 165 228 136 149 136  32 199 200 211  72   9 135\n",
      "   9  62 178 209  12 142  29  43 199 119 125  31  81 164 118 241 191 148\n",
      " 133 150  45  10 143 110 220  37 174 166 145  17  99  32 189  52  75  64\n",
      "  54 190  99  83 159 172 234 133  15  68 250 100 105 240 219 216  87 214\n",
      " 209 201  30  72 157  81  75 216 173  31 135 130 226  23 147  49 136 110\n",
      " 137 181   8  41 138 230 181   8  41  69  92 235 202 125 198 172  46 219\n",
      "  17  46 149  18 172 119 200 194  44 115  61  98 163  45 159  53 171  55\n",
      " 147 222  55 188 202  58  99  12 166  86 142 131 174  24   8 110 159  34\n",
      " 220 239 194  59 100  30 116 191 122  19   2  37  78   7  99 197  38 167\n",
      " 107 175 144 232 208 243 152 254  21 154 138   1 193  18  86 132 229  36\n",
      " 235 221  91 168  31 168 102 242 120  68  90 225  39 162 166  23 188 124\n",
      " 135 251 207  29 220 137 219 233 190  73 255  26 232 208  49 164 243 202\n",
      " 193  98  91  86 135 129 208 100 112  64 164 154  19 187  68 163  86  53\n",
      "  60 213 151 117 175  57 144   7 217 146  16  46  50 157 161 176 149  45\n",
      " 239 219  58 140  90  90 202 189 144 164  26   6 249 219  94 237  16 164\n",
      " 223  44  93  81  71 155 122 170 215   4  61  66  79  21  13 173 235 183\n",
      " 228 179 249 210 216  63 169   8 234 143  27  31  37   8 122 230 254  78\n",
      " 142  29 172  92 169  81  64  65  45 245 237 181 205 147 206  89  45   9\n",
      " 238 124 192 187 128 244  45 150  78  54  87  39 202  73  35 254  95  38\n",
      " 111 119  45 243 101  22 151 160  95 206  63   3  89 171 239  91  86  48\n",
      "   8  46 175  23 222  21 243  53 253 140  20 112  54  43  39  43 125 126\n",
      " 227  52 117 231 219 238  92  80  98  18  66 195  31 126 181 157 157  13\n",
      "  86 146 120 242 192 254 222 188 110 226  73  80 227 242 242  34 183 164\n",
      "  61 169  24  85  16 224  28 194 119 168 108 131  91 104  94  39 100 159\n",
      "  39 149 170 146 107 227 168 124 113  87   5 156 214  32  33 191 223  17\n",
      " 200  83  18  97 233 203 183  38 124  35  44 248 232   0 127 101 173 119\n",
      " 243 195  80  89  34 245 122 119  66 243 223  82 172  93  34  88 128 247\n",
      " 221 187 177  56 120 226 152 244  63 128  36 173  62 137 181   2 155 159\n",
      " 149  99  14 164 137   1 116 172 239 183  77 115  10  57 101  43 114 146\n",
      " 192 188 108 247  25  76 126 188 215 109  49 182 113 218  82 147  70 113\n",
      " 124 116 227  25  36  98 234   5 110 196  24 199 163 254   0   8 245  33\n",
      "  39  89  31 227  92 232 209  79 207  25 212 219  20 155 142 110 155  33\n",
      " 160 162 207 120 105 241 217   6 116 112 240 110 142  89 243 218  30 250\n",
      " 153 140 231  99  68 155 129 195  71 174 204 230  92  11 114 132  23  28\n",
      " 226 187   4 202 141  46 147  96 186 149 198  57  41  13 215 157 250 215\n",
      " 192  22 148 121 126  89  59  77  35 183 186  35 178   1 203  85 156 121\n",
      " 149   0 206 219 135  95  40  81 137 212 174  78 176 223 213 201  62 120\n",
      " 164 108 111 159  92 136 153 175  22 250 163  22 224  78  81  58  59  81\n",
      " 213 118 245 141  25 114 105 144 112 168  94  63 141  84 187  95 103  49\n",
      " 241  45 178 192  99  43 184 252  58 134  83 185 128 102 159  86  16 131\n",
      " 112 206 254  37  99 243 152 103 169 220 242  36 169   8 119 139 178 166\n",
      "  24  33  65 111 111  54 120 234 202 131  82 147 143 255 252 173  51 103\n",
      " 201 154 160 150 156  92 151   2 138  90 213 185 102 129   2  80  35 174\n",
      "  98 123 253  65 165 115 137  77  73 123 236  42 131  76   2 238 159  36\n",
      " 124 197 176 171  61 180 101  67 241 237 154 130  95 137 158 238 185  29\n",
      " 113  65 136 202 232   3  94 112 192   2]\n",
      "cb_subvector [[0.67068994 0.5955943  0.5330933  0.7462156 ]\n",
      " [0.8784815  0.66153425 0.29511055 0.7482894 ]\n",
      " [0.56933403 0.85814613 0.54548734 0.55649   ]\n",
      " ...\n",
      " [0.13385692 0.5314597  0.6794684  0.37949514]\n",
      " [0.1058498  0.90358335 0.43440807 0.2943627 ]\n",
      " [0.9284254  0.7459517  0.8245938  0.9013492 ]]\n",
      "quantized_db[:, i] [ 49 180 199 196 118  68 143 135 144 206 130 142  50 129  93  64 231  30\n",
      "  34 110  17  23 121  47 158 115  31 150  74 255  81 186  51  59  48 123\n",
      " 104  35 127 106  41 140   0 234  82 201  21 151  77  88  41  22  47 121\n",
      "  96 243  61  38 225   1  92 246  88 134 219 233 208 174 177 124  71 236\n",
      " 146   7  84 223  90  34 218   7  76 139 102 217 209  23  26  69  13   6\n",
      "   7 219 173 149 224  57 116 109 228  44  13  67  47  85   2 166 236  49\n",
      " 168 136 166 188 163 161  20 206  97 207  93 250  43 147 107  73 142 223\n",
      " 123  83  75  29  90 134  19 205  97 162  83  58 141 158 251  16 142 163\n",
      "  92 189  70 209 179 202  54  51  98 145  54 156  93 130 166  50  96 100\n",
      "  27 208 180 163  89 228 154  64 154 231 142 252 152 174 147 106 137 184\n",
      " 103 131 206 114 241   4  46  14 102 118 163  32 199 140 211  72  14 159\n",
      " 164  60  73  67  12  45 229  43 144  80 210  35  50 164  73 252 206 148\n",
      " 146 150  97 111 163  99 240 185 137  49 145 156 131 173 177  52 235  77\n",
      " 207 190 253  83  82 200 102  30 150  78  69 192 188 240 163 110 111  94\n",
      " 184 201 252  14 145  21 157 216 170  66 224 171 112  21  80   5 223 118\n",
      " 119  44 211  67 223 230 147  88 229 125 203  35  67   6 198  87 247 206\n",
      " 115  46 131 220 172 234 166 252 236 210  61 201 184  91 109 162 171 142\n",
      " 147 188  55 188 193 148  76 224 217   0  75  58  73 228 198 241 159   9\n",
      " 140 132 194 206 186 242 135 150 186 126  13 134 223  83  41  38  54 167\n",
      " 149  13 225 231 149 114 143 163  21 209 148 201  11  79 127 122 229 198\n",
      " 235  92  91  29 161 140 186 139 120 116  40 225 164 143 166  23 244 184\n",
      " 236  38 207 241 220 202 210 233 111 235 254 160 120 146 109 120 123 235\n",
      " 193 127  86  86  57  49 208 100 249  46 115 141  19  31  48 222  21 138\n",
      "  60 114 201 193 104  55  66   7  67 229 166  29 100 241 203  92  11  26\n",
      "  80 117 213  86 142 141  25 249 182 170 157  30 228 219 209 103  66  93\n",
      "  95 154  93 228  71 155 122 170 175   4  97  29  79  33 142 133 212 101\n",
      "   6 221 249 210 202 164  43  21 111  27 193  27  37   8  56  33 206  97\n",
      "  14  23 129  46  52  39 115 234 205   6  44 181 180  66 236  14  45   9\n",
      " 148  21 193  48  56 221 140   1 134  54  87  62 137  89 169  92  36 162\n",
      " 111 127 232  13  57  22 151  53 130 191  63 243 215 166 239  25  12  48\n",
      " 136  70 175  91  12 169 243  53  61  22  33 112  21  34 134 208 168 175\n",
      "  87   7  90  27 195 187 255  85  98 176  66 195   5  83   0 157 115 170\n",
      " 133 111 202 183 192 254  75  94 110 226  73 221 231 242 122 192 252 249\n",
      " 231 130  43  85  16 111  28  41  35 114 130  91 199 104 193  65 192 117\n",
      "  39  14 155 111  73 227  22  15  31 217   5  49 214  15  12 191  59  17\n",
      " 200   5  18  97  69 202 183 223 246  84  44 248 232 174 179  59 231 214\n",
      "  80  22   8 169 201 245  67  34  93 179 224 243  17 235 174  88  72  72\n",
      " 211 187 177  65 136 100  15 244 197 128 174   1  62 177  38 209  77   6\n",
      " 149  99  89 114 214 102 203 220 233 180 202  99  10 158 101 234 114  28\n",
      " 192  33  93 247  25 144 105  75 242 109  49 182  97 218 170 122 222 106\n",
      "  16 147  13 170  65 125  25 254   3 196 223  76 132 118  36  62  99  33\n",
      "  17 124 112 179  92 245 209 144   7 165 137  83 126 147 167 129 196  73\n",
      " 100 112  16 239  99 105 217   6 132 240   3   9 199  89  30 106 223   7\n",
      " 153 108 179  47   7  64 129 126 136 188 204  89 166  11 176 189 119 209\n",
      "  11 174  58 164  84  29 182  96 150 120 179  57  29  89 202  46  34 215\n",
      " 104  97 235 145 223  64 243 139 102  10 197 198 168  49 238 144  71 117\n",
      "  43 143 206 253 135 244 223  81 249 212 174  78 176 249  70 126 134   6\n",
      " 198 232 181 189 152 244  93 141  72 250 122  52 247  97 148  58 224 254\n",
      " 213  60 163 118 216 246 105  34  65  49 111 140 149 103 179 143 176 102\n",
      "  21  92 178  33   3 135 184  69  53 134 120  75 199 110  42 163   0 131\n",
      "  49 238 121 116 139 207  57 103 198  42  71  36 169  49 119  43  98 124\n",
      "  24  33 214  83 113  86  41 234 209 139  82 112 143 180 252 173  39  96\n",
      "  75  56 160 223 154 163 239  56 138  90  17   5 199 166  98  80 137 181\n",
      "   0  88 253  38 165 169  27  77 193 123  84  42 210 252 121 219 157  36\n",
      " 124 177 171 121 152 132 227 217  50 237  64 151  95 137 148 238 185 162\n",
      " 113 221 231 202   5 242  94  54  85  26]\n",
      "cb_subvector [[0.89210415 0.10128631 0.8832914  0.23667656]\n",
      " [0.41890642 0.5879063  0.07399397 0.5866352 ]\n",
      " [0.08210652 0.49857077 0.9131755  0.14597306]\n",
      " ...\n",
      " [0.34076616 0.42043358 0.87523985 0.529655  ]\n",
      " [0.16987807 0.16197872 0.18270689 0.301193  ]\n",
      " [0.07887702 0.60186124 0.4440229  0.7373146 ]]\n",
      "quantized_db[:, i] [131 198  73 243 118  68 105 127 144 241 244 229 137  69  82 176   8 109\n",
      " 182 153  45 210  50  47 176 115  31 110  74 255 169  48 162  59 131  19\n",
      "  79  73 127 148 121  48  16 104 193 101 249 126 145 117   9 181 166 121\n",
      " 126  28 200  38 104  25 114 246 252 153 228  73 200 140  88  71 125 244\n",
      " 143 119  84  99 240  34   8  76  76 148 232   0  56 185 103  69  54 153\n",
      " 143 228 215 100 224 231 143  87 228  64  13  67  60  39   2 254 236  84\n",
      "  98  28 187 207 159 161  20 142 183  15 135 103  56 188 196 133   8  69\n",
      "   5 181  75  97  40 213 173 205 111 162 154  17 141 158 251  82 142 159\n",
      " 137 189  70  72 179 186   2  51 246 135  40 156  41 130 242  50  79  13\n",
      "  27  41 180 163  48 114 154 138 105  26 128  84 152  61  53 106 216   1\n",
      " 170 189  36 104  38  35 137  25 161  72 147  32 199 174 211  72 100   8\n",
      " 228 137  97 151  12 116  28  43 119 140 106 227 126 164 112 189  44 148\n",
      " 133 150  98  98 109 235 237  31 174 125 145 244 149  90 177  52  29  27\n",
      " 219 190 169  83 242   5 108  30  15  36 189  14 201 240 117 200  41  19\n",
      " 198 201  41  14  71  68  51 216  81 135 158 136 229 183 133  40 163 178\n",
      " 105  38  67  49 206 230 162 255 141 125 126  40 205 145 198  36  10  89\n",
      " 162  46  61  87 172 194 105  48 147 231  61 162 121  38 192 116 171  68\n",
      " 147 222  55 188 206  29  39 142  79 117 242 117  70 187  16 141 159  67\n",
      " 179 147 194 190 153 146 219  40 244  38  72  61   8 137 248 165  39 167\n",
      "  91   5 140 106 244 127  94 243  21  59 205  44 158 126  51  37 229 118\n",
      " 235 109  91 172 143 244  56   4 120 116  40 225 185  14 166  23 195 116\n",
      " 156 125 207 244 220  61  18 233  40  11 182 115 171 196  50  26  71 243\n",
      " 193  62  37  86 190  14 208 100  51  25 176  57  19 105 143  48 171 117\n",
      "  60 107  20 127  92  45 196   7 145 218  80 119 200  40 203  19 255 123\n",
      "  28  78 250 125 120 116 141  13  13  58  26 233  56 219  28 236 138  43\n",
      " 223 120  93  93  71 155 122 170 114   4  67 245  79 116 125 189 228  25\n",
      "  45  99 249 210 148 151 122 119  39 142 238 119 241   8  56  67  94 113\n",
      "  29  59 121  85 251 243 122  15 195  24 120 181  71 117 188 194  45   9\n",
      " 231 119 250 253 119 180 170 145 152  54  87  13 245 230 142 132  36  24\n",
      " 111  60  72 201 119  22 151  23 156  22  63 116 102  45 239   0  55  48\n",
      "  76 126 175 197  77 228 243  53  19 140 104 112  18  45  93 211  87  22\n",
      " 145 235  47 231 161 212 255 254  98 122  66 195 158 146 195 157  25  78\n",
      " 235  68 116 131 192 254 105 225 110 226  73  98  82 242 111  66 179  94\n",
      " 141 182 107  85  16 205  28   2 242 178  47   1 137 104 250  39  77 138\n",
      "  48  92 184  27 138 227  89 117 121 222 225  25 214  77  26 191  74  17\n",
      " 200 234  18  97  71 223 183  44  49  20  44 248 232  93 250  90  73  94\n",
      " 110 166 211 253  45 245 199  33  46  57  83 255 143  49 242  88  91 114\n",
      " 221 187 177  11  86 106  60 244 197 128 213   1  62 178  22 100  90 200\n",
      " 149  99  23  18 195 214  40 142 183 128 234 222  10  17 101 191 114 189\n",
      " 127 158 225 247  25  45 126 131 228 109 217 182 170 218  43  64 234 192\n",
      "  76  76 243 236  52 201 250 221  88  14  46  44  91 221  17  21 140 200\n",
      "  47 179   0  65  92 188 209 255 225 108  86   0 129 205 199  13 222 174\n",
      " 116 126  65 194 148 241 217   6 168   0   3  23  25  89 186 128 209  69\n",
      " 153 108 224  77 165 242 129 167 136 219 204 246   2  11  27 176 211 129\n",
      "  91 197 102  13 122 102   2  96 227 186  60  57  98 110 125 180 105 215\n",
      " 105 120  95 205  26  64 113 193 248  54 156 153 168  63  61  45 162 117\n",
      " 180 160 206  91 135 165 173  81 249 212 174  78 176  72  81  60  21  34\n",
      "  29 205 210  94 112 159 164   9  75 250 186 119 201 216   2  58   8  80\n",
      " 213  23  46  21 135  55 105 183 226 135 190 111 188  68 103   3   4 204\n",
      " 251 167 178  57  63 224 184 153  66 134  33 126  62 215 118 250  23 109\n",
      "  89 113 124  13 101 234 182 103 247 171 133  36 169 144 119  78  49  23\n",
      "  24  33 119  46  60  19  41 234  53  37  82   1 143  15 252 173  66  28\n",
      " 120 163 160 179  50 181  45 127 138  90 239  61 102  49 113  80 220 152\n",
      "  28 202 253  43 165  22 187  77 124 123  36  42 131  52 212 156  69 240\n",
      " 124  60 139 220 164 132 190 168 100 237  99  44  95 137  18 238 185 191\n",
      " 113 123 174 202 183  59  94 100 109 137]\n",
      "cb_subvector [[0.16671911 0.56460977 0.10608423 0.91436416]\n",
      " [0.04980164 0.87769306 0.5451964  0.13237019]\n",
      " [0.14217941 0.38700587 0.34162512 0.8799909 ]\n",
      " ...\n",
      " [0.4782629  0.7524645  0.19280985 0.37315318]\n",
      " [0.11988807 0.33449692 0.07064906 0.8511824 ]\n",
      " [0.83171666 0.85539466 0.3727019  0.8979946 ]]\n",
      "quantized_db[:, i] [118 217 177  95 118  68 114 174 144  77 108  23 159 142 122 133 196 159\n",
      " 135   4  30  70  50  47 179 115  31 119  74 255 179  38  18  59 170  29\n",
      " 195 252 127 173  94 143 248 107  30  68  20  41 161  38  21 182 199 121\n",
      " 180 105   1  38  44   0 142 207  11 166 161 131 228 232  87 147 155 182\n",
      "  16 222  84 120  30  34  22 199  76 190 191 183 202 118 116  69  92 122\n",
      " 226 238 111  75 224 125 219 227 228 221  13  67 118  50   2 227 236 211\n",
      " 112  14 138 178 108 161  20 243 183  81  13 220 244 159 107 204  52  16\n",
      " 162 118  75  29 117 224 173 205 253  59 158  37 141 158 251 105 142 199\n",
      " 109 189  70 208 179  66  50  51 118 146  40 156 253 130 168  50  96   0\n",
      "  27 107 180 163 244 120 154  80 165 186  74 169 152 229 151 106 252 121\n",
      " 172 229  79 109  74  35   9  87 186  52  16  32 199  23 211  72 150 105\n",
      "  69  71 138  55  12  29  10  43 212   5 246 126  79 206  16 117 242 148\n",
      " 133 150 205  33 110  51 205 125  58 243 145 180 229   2   6  52 170 248\n",
      " 102 190 184  83 170 103 217  30  15  14 225 137  64 240 217 137  71  35\n",
      "  63 201  42  14 142 214 241 216 244 250 229  62 243 187   0  38 116  15\n",
      "  65   8 221   2 231 230 127 179 158 125  74 115 138 237 198 105  74 149\n",
      " 177  46 106 108 172 134 134  30 216   6  61  62  32 180  69  70 171 118\n",
      " 147 222  55 188  16  72  96 141 125  69 127 174  27 123 227 228 159 226\n",
      " 215 169 194  42  10  13   8 175  51 225  51 149 103 232  68   6 162 167\n",
      " 182 249   6 187 225 110 161 161  21  26 112 157 195 110 181 226 229 153\n",
      " 235  25  91 162  87  99 183 179 120 116 215 225 237 255 166  23  39 144\n",
      " 149  69 207 101 220 156  36 233  88 254 150 204  42 246 188  74 128  89\n",
      " 193  77 198  86 111 164 208 100 166  35 229 106  19 103   4 153  22  19\n",
      "  60 241  86 129  36  64 213   7  26 146 156 103 172  43 203 200  30 222\n",
      " 118  71  65 141 144 149 162   8 160 238  26  70 222 219 118  34 169  64\n",
      " 223  95  93  14  71 155 122 170 171   4 208  24  79 145 206  44  61 153\n",
      "  18  35 249 210  70 241 177  70  44  92 200  77  37   8  56 212 177 108\n",
      "  78 255  77  64 171 175  15  57  53 241 251 181 220 223 116 220  45   9\n",
      " 172 190 129  54 194   0  93 209  72  54  87 147  34 233  14 169 122 212\n",
      " 111 234 172 186 204  22 151 253 128 118  63 194 253 110 239 224  55  31\n",
      " 227 175 175  40 144 190 243  53  28 140 221 112 121 116 112 181 188 153\n",
      " 209 146 164 231 176 116   9  13  98 175  45 195  83 225 225 157  24 220\n",
      " 243 205  47  13 192 254  86 118 110 226  73 147 253 242 182   0 214 211\n",
      " 221 109 188  85  16 211  28  42 106 184 141 124  78 104  56  39 121 104\n",
      "  68 252  36 211  52 227 193  59 206  61   5 142 197  96   3 228 134  17\n",
      " 200  50  18  97  77 250 152  36  69 177  44 248 232  11 176  35 144  50\n",
      " 175 226  62 124 220 130 108 201 151  60 131  33 117  16 176  88  37   9\n",
      " 221 187 177  13  43 135  11 244 197 128 236   1 130 178 233  41 113 225\n",
      " 149  99 142 120 114 202 179 109 242 147  70  28  10  94 101 172 114   0\n",
      "  37  83 200 247  25  75 126 119 219 109  49 182 180 218  21 159  40  52\n",
      " 241  64  10 209 100  82 128 212 153 196  42 103  33  26 238  13 231 182\n",
      "  44 200 212  84  92 255 209 233 156  57  73  21  81  78 255 104 154  66\n",
      " 244 128 172 198  77 241 217 178   8 218   3 220 145  89 227  11  25 127\n",
      " 153 108 212  76   3  55 129  66 136  41 204 252 156  11 135 191 214  70\n",
      " 236 249 120   3 160 117  36  96 186  93  76  57 141  33 200  69 245 215\n",
      " 162   5 141 109  37   1 132 245  81  28 148  68 168 187 158  59  35  45\n",
      " 220 181 206  48 135 130 204  81 211 212 174  78 176 201  29 108 132 177\n",
      "   7 250  30 147 108  43 227 118  86 250   6  40  26 148 252  58  19 174\n",
      " 213 120 160  25 193 136 105 168  65  42 255  38 114 127 165  97  52 140\n",
      "  21 124 178 223 134  72 184 126 188 134 154 121 125  99 112 198 129 131\n",
      "   9 227  25 238 134 156 113 103 108 187  27  36 169 126 119  50 125 236\n",
      "  24  33  42 122 230  90  41 234  15  20  82  76 143  61 252 173  74 237\n",
      " 240  11 160  66 176 118  13 206 138  90  56  17 102 194  48  80 109  28\n",
      " 244  44 253  62 165 129   4 109  13 123  97  42 175 235 216 164 202 249\n",
      " 225 214 139 112 246 132 112  12  49 237 198 135  95 137 161 238 185 156\n",
      " 113  58  53 202 101  91  94 186 143  49]\n",
      "cb_subvector [[0.7349338  0.7148242  0.10758635 0.566476  ]\n",
      " [0.44507968 0.09836541 0.6446714  0.95982873]\n",
      " [0.13394848 0.88705546 0.57529545 0.8411153 ]\n",
      " ...\n",
      " [0.5824104  0.02379354 0.71608853 0.58020514]\n",
      " [0.41987872 0.4865436  0.14109299 0.49265504]\n",
      " [0.6714356  0.37117338 0.6461284  0.96541613]]\n",
      "quantized_db[:, i] [ 95 196 105 121 118  68 238 219 144 169 207 237 134 107 116 182 153 166\n",
      " 146 110  97 227 185  47 202 115  31 141  74 169  60 125 182  59 188   0\n",
      " 233 214 127 154  97 198 237   0  66  65  78 181  17 119 254 107  37 121\n",
      "  64 132 188  38  17  65  34 246  77  72 133  27  67  55 251 166 167 141\n",
      " 180 248  84 110  92  34  13  65  76 183   4   0 107 199 196  69  21 134\n",
      " 253  44 119 140 224  86  32 255 228 142  13  67  21 126   2 186 236 127\n",
      "  48 194 103  47 230 161 254 216  19 172 115  70 226 213 107 250 130  76\n",
      " 116 124  97  29 164 224  65 205  93 162 154 172 141 158 251  12 142 209\n",
      " 227 189  70  67 179 203 105  51 131  76  13 156 185 130 252  50  11 178\n",
      "  27 251 180 163 105  46 154 224 230  16 249  76 152   9 211 106 140  18\n",
      " 226 233  82  71 151  35  99  96  85  14  21  32 199  15 211  72 218 133\n",
      "  58  17  48 200  12 247 243  43 150 111  41 161 155 164  16  30 183 148\n",
      " 133 150  95  33  22  69 252  56  90  19 145 227 135 233 142  52  89 166\n",
      "  47 190 198  83 158 226 110  30  15 108 146 117  37 240 195 115  18  79\n",
      " 124 201 154  14  95  73 224 216 249  62  27  29 157 116  62 140  34  53\n",
      "  91 129 219 232  34 230 132   7 218 125 240  78  98  29 198  77 107 230\n",
      "  86  46 160  47 172  10  59  29 193 183  61 194 255 213 173 224 171  45\n",
      " 147 222  55 250   4 148 224  86  12  12 181  85  36 237 213 236 159   2\n",
      "  37   2  71 236  12  13 176  71 101 135 189 247  84 223  40  85 101 167\n",
      " 202 135 143  33 238 204  22 127  21  25 203 199 205 245 191   4 229 246\n",
      " 235  95  91  75  71 102 124  72 120 116  40 225  35 108 166  23 207 182\n",
      "  33 194 207   2 220 135  98 233 180 138   4 140 225 194 202 201  56  42\n",
      " 193 109 151  86  68 111 208 100  73 139 236 142  19  52 151  56  93  61\n",
      "  60   7 195 187  86 227  63   7 166 146 233  20  14  52 203   6 228 147\n",
      " 135 162  70 241 254 128 213 150 161 175  26 110  75 219 225 102 128  75\n",
      " 223   2  93 187  71 155 122 170  12   4 226  51  79  51 222 197   9  66\n",
      " 205  89 249 210 109  70 213  44   1 113 226  95  37   8  56  13  99 145\n",
      "  16 221 135  74 228 186 139  37 119  76 188 181 234 227 179 142 117   9\n",
      " 154 252 240 240  41  25 141 238  64  54  87  16 235 172 214 116 203 126\n",
      " 111  32  27 191 240  22 151  53 203 195  63 215 172 150 239 255  69  48\n",
      "  15 147 175 150 255 179 243  53  38  50 121 112  47  86 227  70  93   3\n",
      " 145 230 147 231  52 206  63 127  98  20  66 195 154 216 143 157  18 204\n",
      "  13 135  43 216 192 254  58 101 110 226  73  62  45 242  50 201 136 115\n",
      "  52  88  50  85  16 119  28 172 107 235 111 159 227 104 193  39   4  35\n",
      " 253 243  13 104  20 227 167 106  15 167   5  21 214  83 111 191 150  17\n",
      " 200 183  18  97 153 126 183 146 178 208  44 248 232 126 111 128 237 216\n",
      " 234 129 224 130 129 246 214  11 133 201  12 173  21  24  22  88 123  96\n",
      " 221 187 177  72 211 193 209 244 197 128 225   1  62  76 121  34  52 225\n",
      " 149  99 192  77  88 208  52 225  71  67 107  23  10 104 101 128 114  39\n",
      " 213  33  97 247  25  79 126 190  56 109  49 182 201 218 189 225 102 104\n",
      " 131 152 222 235  81 127 180 167  39 196 149 123  12 150  16 185 230 153\n",
      " 234  77  19   1  92  92 209  40 242 176 180   9  46 119 108 131 134 172\n",
      "  16 231 185 221  82 241 217   6 168 182   3  10  95  89  40 144 237  40\n",
      " 153 108 231  93 167 220 129 227 136 220 204 201 107  11 133 255 114   1\n",
      " 156  81 167  29 151 114 231  96 186 172 162  57  76 229 116 200  32 215\n",
      " 177 155 201 224  25  64 237 191 198 239  83 115 168 210 116 145 123 117\n",
      " 158 156 206 251 135 110 134  81 159 212 174  78 176 241 179 156 111 125\n",
      "  40 150 111  71 242  36 154  94 144 250  25  14 160 169 154  58  26 235\n",
      " 184 121 175 230 255  88 105   6  65 132  59  82 129  12 176 214  28 181\n",
      " 225  45 178 149 148 240 184 214 119 134 152  78 243 149  97 125 151 212\n",
      "  92  42  18 212 238  27 235 103 130 137 162  36 169  94 119 237  13 181\n",
      "  24  33  95  67  86  37  41 234  55  32  82  16 143  10 252 173  33 160\n",
      " 194 164 160 143  68 218 190 232 138  90   7 147 102 113  66  80 106 230\n",
      " 195  36 253 243 165 169 179  77  16 123 125  42  28  94 186 168 237 131\n",
      " 124 131 139  58 178 132 154 104  48 237 232  13  95 137 119 238 185  99\n",
      " 113 239 132 202 105 178  80 211  59  95]\n",
      "cb_subvector [[0.68870693 0.10852285 0.10793122 0.6618625 ]\n",
      " [0.8465869  0.61354315 0.07415207 0.66984534]\n",
      " [0.54917634 0.7462245  0.32109004 0.36596656]\n",
      " ...\n",
      " [0.7519407  0.40804082 0.9615246  0.86734635]\n",
      " [0.4967296  0.6083676  0.03546722 0.11709835]\n",
      " [0.68870693 0.10852285 0.10793122 0.6618625 ]]\n",
      "quantized_db[:, i] [242   6  10 202 118  68 137 226 144  99 252  93  76 162  40 254 107 175\n",
      "  28 123 213  44 110  47  89 115   0 198  74 255  83  27  69  59 178 197\n",
      "  60  82 127  12  74   2 215 194  84  52  93  68 251 113  27  59 217 121\n",
      "   5 113 113  38  87 253 166 246 223  85 240  94 205  55 103  33  18  52\n",
      " 211 163  84 148  88  26  77   6  76  80 191   0  69  15  42  69 113 193\n",
      "  44 208  71 232 224  49  49  68 228 157  13  67 203 169   2 234  68 203\n",
      " 230  50 154  31 216 161  20 181 174 246  56 114 133  71 107 227  83 118\n",
      " 195 197  75  29 116 111  11 205   9 162 190  63 141 158 251 225 142 119\n",
      "   0 189  70 132 179 120  30  51 142 143  72 156 193 130  77  50 200 207\n",
      "  27  40  29 163 222 155 154 219  99 196   4  32 152 139  27 106 117  35\n",
      " 202 155 198 175 225  35  37 214 216  59 245  32 199 113 211  72 223  30\n",
      " 191  19 199 246  12 117 249  43  63 208 193  60 253 105 199  92 211 148\n",
      " 133 150 185  24 238 130 224 193 239   3 145 234 135  38 113  52  36   6\n",
      " 113 190 112  83  14 150  11  30  15  22 255  78  80 240 147 163 173 251\n",
      " 116 201  33  14 164 125  20 216 106  26 236 147   5  71  26  52  94  60\n",
      " 228 105  90   8 235 230  67  10 254 125 223 219 119 220 198  44 157  11\n",
      " 168  46  24 125 172 160 150 163 215 125  61  26  64  45  90 102 171   0\n",
      " 147 222  55 188   2 156 106 172 213 189  93  88 116  38 197 195 159  89\n",
      "  43 197 194  63  94  64 181 105 176 160  60 213  44 121 200  72  59 167\n",
      "  53 240  74  14 163  63  74 119  21 159  88  10 208 219 209  19 229 240\n",
      " 235 193  91  28 246  95  87  59 120  42  40 225 113  14 166  23 235 166\n",
      "  78  89 207 231 220 126  47 233  50 113  73 253  26 209 252  27  45 224\n",
      " 193   9 224  86  88 209 208 100  20 193 238 235  19  52  39 128  49 206\n",
      "  60 196  85 163  65  57 249   7 189 146  64  86 142 114 203 155  82 215\n",
      " 248 229 136 143  81  88 171  72 179 107  26 228 113 219  30  98  32 191\n",
      " 223 157  93  56  71 155 122 170 240   4 193 202  79 148 183   8  81  64\n",
      " 185 169 249 210 240 130  14 186  21 217 186 188  37   8  56 172  20 157\n",
      "  64 242  88  17 189  49 169 117 246 126  98  51   5 153 116 146  45   9\n",
      " 199  88  22 248 216  35 160 147 118  54  87  73   0  20 196 230 142 155\n",
      " 111 228 193 134  77  22 151  87  59  79  63  87 213 174 239 245  24  48\n",
      " 202  23 175  76 175  34 243  53 153 140 100 112 125 190 150  80   2   8\n",
      "  24 253 204 231 206  56  27 101  98 169  66 195 111  52 254 157 235 193\n",
      " 230 255 246 173 192 254 153 208 110 226  73 223  22 242 211  74 241  14\n",
      " 174 193 232  85  16  19  28  58 169  13  69 175 109 104 125  39  96  84\n",
      "  21   1  80 141   8  26 227  74 185  40   5  41 214 244  13 191 165  17\n",
      " 200 241  18  97 126 196 183   0 204 235  44 248 232  59 235 164 142 196\n",
      "   9  54  94 126  83 245 189 186 201 113  41  83 176 179 108  88 164  50\n",
      " 221 187 177 220 126  60 178 244 197 128 101   1  62 235   1 248 245  28\n",
      " 149  99 228 213  52 202 240 109 246 174 202 109  10  47 101 154 114 118\n",
      "  19  43  24 247  25  89 126 190  78 109  53 182 255 218 190 118  96 129\n",
      " 113 125 189 174 252 203 146  19 231 196 227  71 171 226 190  81  34 224\n",
      " 224 241  34  34  92 209  98  76 201 248  44  86  12 169  68  72 122  61\n",
      " 214  10 138 175 252 241 217   6  42 122   3  63 207  89 217  45  86 149\n",
      " 153 108 188 123  72 223 129  63 136  70 204  39  45  11 190 160   2   6\n",
      " 244 103  80 168 125  56 159  96 186  70 151  57  83  24 118  80 160 215\n",
      " 241  16 115 207  19  64  35  46   6  54 159  80 168 201  98 146  19 117\n",
      " 166 192 206 121 135 110 191  81 110 212 174  78 176 175  79 189 117 164\n",
      "  67 106 186  27 135 114 128 100  46 250 244 226 164 230 186  58 158 133\n",
      " 213 180  80 228 110  95 105  52  65 213 107 167  74  31 245  78  84 112\n",
      "   6 194 178  37   8 192 184 127   3 134  33 255  65   8 122  74 193 131\n",
      " 221 171  91 201 208  10 222 103 137 255 252  36 169 149 119 213  49 174\n",
      "  24  33  11 217 255  78  97 234  55 159  82  41 143 200 252 173 105  44\n",
      "   3 213 160 191  86 229 149 113 138  90 205  76 102 208 173  80 195 109\n",
      " 182 167 229  63 165  87 117 184 140 123 126  42 235  19  99 148 191 217\n",
      " 124  11 139 208 150 132  88  11 105 237  40 105  95 137 179 238 185 220\n",
      "  85  80  54 202  39  57  94 170  34 198]\n",
      "cb_subvector [[0.32220694 0.65068793 0.5316478  0.3632567 ]\n",
      " [0.7175438  0.06936977 0.785041   0.5860896 ]\n",
      " [0.4987397  0.68332165 0.3978535  0.23738071]\n",
      " ...\n",
      " [0.29027918 0.27139848 0.7643638  0.42783758]\n",
      " [0.03863345 0.22119503 0.44522825 0.6762378 ]\n",
      " [0.25743484 0.28396115 0.7232758  0.18712959]]\n",
      "quantized_db[:, i] [ 74 137  50  85 118  68 207 109 144 241  12 100  45 196 112 141  34  43\n",
      " 158 202  69 244 224  47 203 115  31 201  74 255  60 205 204  59  23 122\n",
      " 135 240 127 181 248  80 171 240 195 228   6 101 250 208  94 202 176 252\n",
      " 128  61 212  38  99  15 203 246  55  37 147  33 134 207 198 150  37  74\n",
      " 179 126  84 132   8  34 141 145  76  19 219   0 169 238 166  69  87 177\n",
      " 125  83 194  32 224   3 226  55 228 244  13  67  16 236   2 236 236 203\n",
      "  66  55 157  65  77 161  20  58 205 225 105 197   9  25 107  80   1 221\n",
      " 195   9  75  29 179  87   0 205 179 162  48  75 141 158 251 125 142 224\n",
      "  34 189  70  57 179 246  41  51 118  53  37 156   1 130  10 184 216 173\n",
      "  27 173 180 163 123 184 154 250 247  81 237 158 152 196  90 106 147 181\n",
      " 200 108 250 121 171  35 174  37  36  30 174  32 199  72 211  72  47 136\n",
      " 132  43 162 168  12  59 191  43 138 176  16  59 202 164 188  15  97 148\n",
      " 133 150  61  82 211 155  21  44 145 220 145 100  40  14 221  52 241 128\n",
      " 179 190 177  83 227  51 189  30  15  86 245 196 106 240  91 125   3  48\n",
      " 206 201  82  14 255  90  92 216 210 112 142 125 156  77 187  29  82  81\n",
      " 221 159  59  22 248 230 229 239  76 125 170   3 162 157 198 162  34 117\n",
      " 128  46 164 149 172  75 187 206  93 189  61  41  22 222  61  40 171 187\n",
      " 147 222  55 188 108 116 141  75 226  23   4  92  55 181  24  51 159  30\n",
      " 125  57 194 246 115 230 229 127 226 167 188   0 233  35 217   9 224  57\n",
      "  10  48  86 168 101 216 129 160  21 111 213  43  48 128 109 174 229 138\n",
      " 235 121  91 201  97 136 107  91 120 116  40 225  12  91 166  23 215 111\n",
      " 113  48 207  97 220  43  11 233 108  57 200 182 123  78  93 104 216   0\n",
      " 193 188 207  86  26 184 208 100  35  21 230 111  19 182  57 139 138 168\n",
      "  60  50 180 196 143 105 252   7  33 146 245  87 141  48 203 198  64 248\n",
      "  61  59  60 244 168 251 114 234  64 249  26 224  10 219  11 167 209  70\n",
      " 223 154  93  34  71 155 122 170 202   4  98 237  79 181 219 119   4 106\n",
      " 180 143 249 210 118  65 116   4 114 190 193  51  37   8  56 216 190 187\n",
      " 231 139   3 209 126 250  70   9 119 157  83 181  80  53  57  21  45   9\n",
      "  80 109  59 167  78 105 124 167 155  54  87 151  15 248 249 137 218 100\n",
      "  42 170 164  53 235  22 151  75  61 144  63 226  78 177 239  38  23  48\n",
      "  75  87 175 150 103 128 243  31 160 140  80 112 240  76  33  17 231 133\n",
      "  26  36 159 231 133 151 172 226  98 221  66 195  10 180  51 157  70  47\n",
      "  51  17  45  65 192 254 152  99 110 226  73  26 208 242 205 234 225  37\n",
      "  94 173  68  85  16 113  28 155 243 236  75  69 202 104   0  39 102  70\n",
      "  79 198  37 195 197 227 167 133 146  66   5  98 214 131  99 191 247  17\n",
      " 200 233  18  97  41 189 183  92 197 131  44 248 232 244 156  48 236 162\n",
      "  90 105 126 108 167 245   6 102 138 240 136   6  82 176 130  88 192 231\n",
      " 110 187 177 208  98  72 146 244 197 128 215   1  62 194  65  36 254 153\n",
      " 149  98 150  24 125  26 106  51  72  73  60  18  78 159 101 191 114  50\n",
      "  96 206  75 247  25  32 126 140 147 108 255 182 124 218 209  39  25  47\n",
      "  70 103  66  36 144 117 154  61  53 196  41  41 105  48  37  72  25 153\n",
      " 220 118  98  75  92   8 209 132 100   0 195 223 222  91 170  11 147  55\n",
      " 247 165 181  96 234 241 217 227 167 190   3 146   0  89  91  39 249  36\n",
      " 153 108 128 220  93  54 129 125 136 224 204  19 240  11 159 135  78 254\n",
      " 193 206 169 118  27 167 168  96 186 136  44  57  94  62 159 213  64 215\n",
      " 211 156 184 155 133  64 146 118  81 137 164  82 168   9 230 131 244 117\n",
      " 126  18 206 155 135 125 228 247 187 212 174  78 176 195 128  80  12 167\n",
      " 203  26 188  12 156  35 135 121 132 250  44  50 160 122 155  58 193 159\n",
      " 213 240  36  91  49 220 105 245  65  62 234 116 227  79 238 232  39  79\n",
      " 227 236 178 182  54 177 184  50   4 134 162 168 176 207 110 226 252 131\n",
      " 125  77 157  94 106  23 234 103  70  15 125  36 169 250 119  50  14 206\n",
      "  24  33  57  43 166  50  41 234 195 106  82  33 143  10 252 173 174 127\n",
      "  24 156   5  86 181 252  46 208  14  90  59 208 102 181  57  58   0 133\n",
      " 233  95 253 226 165 202  53  77 100 123  12  42 244  72  16  82  81  66\n",
      " 124  20 139 138 225 132  57 228 110 237 161  34  95 137 159 238 185  93\n",
      " 113 202  55 202  75 253  94 171  32 150]\n",
      "cb_subvector [[0.9485988  0.837345   0.29119545 0.02986751]\n",
      " [0.45202267 0.70478576 0.45687312 0.5083707 ]\n",
      " [0.8291447  0.92296314 0.36071613 0.5222993 ]\n",
      " ...\n",
      " [0.24664533 0.8397859  0.183151   0.03388977]\n",
      " [0.09311134 0.36086452 0.72254586 0.41818202]\n",
      " [0.16155112 0.2402892  0.3308631  0.47690803]]\n",
      "quantized_db[:, i] [213 236  12 210 118  68 135 249  23  32  50 163 175  46 165  39 223 221\n",
      " 139 170  57 101 129  47 236 115  31 236  74 255  36 163 144  59  78 104\n",
      "  94 214 127 170  16  77 209  57   7 224  22  49  39 229 237 199 131 121\n",
      "   9 229  97  38 130  14  68 246 102 239 201 152  37  44  44 189 212  43\n",
      "  48 184  84 154  94  72 202 217  76  39 202 108 146 205 175  69 145  30\n",
      " 209  39  43 204 224 234  86 139 228 182  13  67 110 180   2 249 236 206\n",
      " 155 180 252   6 117 161  20  41 184  82   8  76 214 219 107 230  81  61\n",
      " 218 214  75  29 170  59 235 205  97 162 205  79 141 158 251   0 142  98\n",
      "  64 189  70 192 179  90 212  51 239  52  43 156  56 130 106  50 191  52\n",
      "  27  50 180  27 166 112  67 171 202  71 205 103  27 174 148 106 229 149\n",
      " 170 250 192  40 152  35  32 251  74 116  81  32 199 129 211  72  96 189\n",
      " 225 183 190   8  12 224  47 172 119  54 140 117 190 164  48 253 106 198\n",
      " 133 150 182 147 191 158 125 185 123 119 145 204 223  75 249  96  76  24\n",
      " 191 190   2  83  26 163  82  30  15 170 225 118 139 240 108  77  68 189\n",
      " 144 178 231  14 177 220 225 216  31 173 119 132 147 251  71 202  17 132\n",
      " 162  73  54 194 175 230 116  66   3 125 147  95  10  47 198 180 129  98\n",
      " 190  46  61  92 172  77 113 169 255 126  61 211 159  86 232 125 171 179\n",
      " 147 222  55 188  22 100 150 185 139   0 169  12 147  19  88  19 159 166\n",
      "  68 216 194 242 236 132 156 235 217  26  33 127 250 134  62  22  39 167\n",
      " 137 115 177  24 153  96  52 120  21 197  11 138 168  98 100  69 229 235\n",
      " 235  14  91 179 231 138 150 154 120 116  40 225 240  26 166  23 219 165\n",
      "  55 254 207 138 220 199 239 233  59  43  40 186 167 186 177  88 184 251\n",
      " 193  19  63  86 217 220 208  15  63  53 161 177  19 223  41 151 184 246\n",
      "  60 114  44 233  81 110  86  72  57 146  30 191 146 249 203 207  64 158\n",
      " 102 115 228  48  68 151  76 168 136  88  75 198  13 133 235  95 218 228\n",
      " 223 119  93 163  71 155 122 170  25   4  12 245  79 147 144 234 190   7\n",
      " 133 158 249 210 251  89  45 224 152  38  90 101  37   8  56  45 162 227\n",
      " 120 125 235 140 249 176  45 202 193 253 171 181   5 196  47   6  45   9\n",
      " 222 250 224 136   6  43 104  51 237 160  87 194 227 161 193 164 177 123\n",
      " 111 222 253 229   1  22 151  74 219  55  63 145 212 219 239 168 248  48\n",
      "  60 246 175 100  30 113 243 160   9 140 119 112 199  54 254  35 113 119\n",
      " 140 148 254 231  78 210 140 203 186 130  66 195  95 205 253 157 114  20\n",
      " 157 102  84  82 192 254 157  76 110 226  73 138   5 242  65 212  43 141\n",
      " 154  26 235  85  16 187  28  10 153   7  49  22  18 104  48  39 113  30\n",
      " 120 224 239  86  51 227 139 170 183  47   5  59 214  81 239  93 236  17\n",
      " 200  73  18  97  29  89 183  85 205 126  44 248 232 103 100 163 241  29\n",
      " 205 212 244 186 193 245 139 240   4 110  20 171 147 146 168  88 144  38\n",
      " 221 187 177  33 144 160  96 244 197 128 187   1  62 208 162  38  46 210\n",
      " 149  99 184 101 243 231  56 171 193  46  52 135  10 202 101 173 114  66\n",
      " 212 242 226 247  25 148 126 192 229 109  49 182 133 218 102 215 161 242\n",
      " 118 190  92 209  13 117 168  48 120 196 186 235 117 128 118  88  41 204\n",
      "  11  91 174  35  92   7 209 157 215 123 243 117 113 245  38  77  19  99\n",
      " 220  77 214 131   3 241 217   6 201 249   3  26 147  89 237  12  88 117\n",
      " 153 108  31 136 164 184 190 233 136  86 181 165 210  11  28 182 196  37\n",
      "  51 226 104 211  74 147  23  96 186 200 183  57 230 210 163  86 206 215\n",
      " 157 163 217 209 154  64 100 246  74 124  39 161 168  22 192 188 253 117\n",
      " 202 231 206  19 135  22  34  81  63 212 174  78 176  75 136 222 170 182\n",
      "  79  83 190 213 181 209 230  31  69 250  46 146 223 224  68  58 199 226\n",
      " 213   9 118 214  42 149 105 129  65  48  93 101  83  92 105 124 163 119\n",
      " 104 237 178  95 219   1 184  65 137 134 114 236  87 215  32  55 125 131\n",
      " 148 177 248 182 107  64 217 103  47 150 204  36 169 177 119 119 128 248\n",
      "  24 226   5 210 182 151  41 234 136  43  82  79 143 120 252 173 142  76\n",
      " 199  87 160 183 245  54 142 153 138  90 212 244 102  64  16  80 223  99\n",
      " 254 197 253 130 165 229  51  77 103 123 120  42  82 168 148 252  91 192\n",
      " 124 173 139 144  11 132 206  30  72 237 232 190  95 137  22 238 185 222\n",
      " 113  26   5 202  92 131  94  57 137 151]\n",
      "cb_subvector [[0.29612523 0.41511115 0.71903837 0.9457717 ]\n",
      " [0.14194265 0.2311114  0.8060199  0.13359618]\n",
      " [0.23454653 0.2571962  0.26747987 0.38105145]\n",
      " ...\n",
      " [0.5084104  0.38957286 0.86902183 0.8107025 ]\n",
      " [0.60354674 0.8310335  0.68310666 0.93774843]\n",
      " [0.6723633  0.26970193 0.5886291  0.24318865]]\n",
      "quantized_db[:, i] [ 36  29 127 252 118  68 213 108 144  59   9  26  84  41 217  95 161 171\n",
      " 224  55  76 163 249  47 248  51  31  10  74 255 157  32 102  59 105 150\n",
      " 127 243 127   0 173 227 119  90 208 236 154 232 171  21 205  57 162 121\n",
      "  73 128  90  38 242  39 190 246   3 144 181 130 200 158  99 208 150 159\n",
      " 248  12  84 240  18  34  73  40  76 130 162   0  65 192  27  69  56  92\n",
      " 194 212 207  90 224 129 250  37 228 176  13  67  10 198   2  98 236  65\n",
      " 100 119  79 207 209 161  20  30   5  89   2   7 164   7 239  34 162 166\n",
      " 153  22  75  29  30 153  89 205 114 162  57 204 141 158 251 184 142  50\n",
      "  70 189  70 189 179  10  81  51 109 135 216 156 255 130 133  50  15 153\n",
      "  27  18 180 163  74  22 154 215 104  54 223 186 123 158 176 106  54 112\n",
      " 114 204 249  15  11  35 173 185 141  84 168  32 199 209 211  72 148 100\n",
      " 219 172 192 147  12 221 161  43 147  66 236 123 179 164 115  95 150 148\n",
      " 133 150 206 186 185  61 224 243 236  13 145  73  12 152  44  52 227  72\n",
      "  37 190  50  83  82 181  52  30  15 147  77 234 124 240  91 255 209 227\n",
      " 147 201  71  14 112   6 189 216  63  62 201 123  73 166  37   9 107 244\n",
      "  89 251  89 220 171 230 150  55 209 125 190 117 216 216 198 223  84  19\n",
      " 147  46  27 139 172  15 134 240  51  91  61  58  15  80 133 175 171  53\n",
      " 147 222  55 188 145 212 209 197 152  95 155 212  42 219 208  28 159 103\n",
      " 238  69 194 205 119  84   9 181 151 154  31  60 187 140  81 177 178 167\n",
      " 210  26 234 116 150 110 242 178  21 105 202  24 181  21 107 164 229 204\n",
      " 235 159  91 246 151  72 120  83 120 116 229 225 104  27 166  23 250 128\n",
      "  95  99 207  24 220  87 230 233  42  81 187 176 221  48 113 105 169  31\n",
      " 193  30  56  86 152  86 208 101  44 196 221 149  19  23 224 198  67 150\n",
      "  60 251 174 150 219 248  53   7 218 146 168 210 115 205 203  42  90  55\n",
      "  87 237  73 104 212 232  47  51  43 150  26 148  56 219 224 239 244 115\n",
      " 223 141  93 218  71 155 122 170  69   4 127 138  79  57 224 122 202   7\n",
      "  48  12 249 210  50  60 144 246 220 189 147  77  37   8  56  64 224 217\n",
      " 129  62 232 179  67 194  17   9 142 109  36 181  79  26   4  46  45   9\n",
      " 128  57  47  85 152  68 220 167 149  54  87 114 186  20 232 255 100  27\n",
      " 111 206  98  44 105  35 151 121  50  46  63  77  24 150 239  49  90  48\n",
      " 248 174 175  63 108 234 243  53   3 140 126 112 134  61 143  44   9  55\n",
      " 127  96 251 137 221 251 141 153  98  59  66 195  38 104 219 157   5 134\n",
      "  28 209 243  61 192 254 224  50 188 226  73 118 175 242 234  42  27 241\n",
      " 115 235  52  85  16 119  28  58 248 139  48  28 131 104 152  39  48 238\n",
      " 166 219  54 243  78 227  37  44 176 119   5  33 214 187 152 191 252  17\n",
      " 200  82  18 229 222  97 183  57  46  56 193 248 232  45 205 195 201 206\n",
      " 152 133  79  79 247 245  70 211  82 252 212 154 130 135 103  88  68  13\n",
      " 221 187 177 144 152 159  33 244 197 128 255   1  62 240 116 130 215 224\n",
      " 178  99 235  27  15  37  94 105  66 197  83 105  10  51 101  14 114  24\n",
      " 255   1  42 247  25 190 126 177 187 109  49 182 107 218 249 128 145  56\n",
      " 157 238 144 207  20   3  34 243  91 196  11 137  99 184  15 185  76 120\n",
      "  37 211 149 196  92 130 209 226  26  29 134 188  23  15 157  49 135 179\n",
      " 103 255  73 155 243 241 217   6  40 182   3 186 250  89  55  18 119 165\n",
      " 153 108  53  34 216 135 129  86 136 204 204  34  69  11 148  68 234 192\n",
      "  68 175 225 156  52 127 104  96 186 251 169  57 226  86   2 233  30 215\n",
      " 213  42 200  89  87  64  84 140 192 212  32 109 168  94 166 178 145 117\n",
      " 211 202  23 100 135  61  87   0 244 212 174  78 176 112  83 234  75  32\n",
      " 250  70  56 150 234 230 118 151 129 250  27 161 163 216 144  58  30  47\n",
      " 101  67  15  43   4 169 105  51  65 123  35 248  81 216 143 228 143 164\n",
      "  46  90 178 155 187  72 184 151 228 134  32 177 179  97 231 249 130 131\n",
      " 177 162  37 111 169  49 202 103  65 124  32  36 169 213 119 177  90 165\n",
      "  24  33 232  40 161 234  41 234 248 227  82 200 143 152 252 173 102  34\n",
      " 127 203 160  68 206  23 150  81 138  90 184   6 102 143  58  80 117 230\n",
      " 216 179 253 123 165 198 109  77 195 123 139  42  79  74 125  40  90 148\n",
      " 124  93 139   9 196 132  49  57  68 237 194  81 222 137  59 238 203 119\n",
      " 113 235  70 202 250  62  94  65  40 125]\n",
      "cb_subvector [[0.3458221  0.66672343 0.58347887 0.65268445]\n",
      " [0.33398172 0.95915383 0.30242226 0.9574134 ]\n",
      " [0.8953559  0.76064914 0.6006578  0.9283304 ]\n",
      " ...\n",
      " [0.8731561  0.6700592  0.7716486  0.13457279]\n",
      " [0.30764398 0.65142024 0.20835045 0.39191386]\n",
      " [0.07782915 0.88483953 0.35006684 0.9050743 ]]\n",
      "quantized_db[:, i] [239 125  64 136 118  68 182 172 144 132 200  38 235  29 174 200  47  18\n",
      " 158 173  91  50 227  47 237 115  31 157  74 255 151 234 106  59  52 195\n",
      " 222 177 127  57  17 186 124  19 206  85 187 216  22  70 175  78 215 121\n",
      "  22 116  88  38 183 191 106 246 125 255 188  54  33 166 141   9 237  90\n",
      "  20  26  84  59  30  34 183 146  76 106 141   0 249 220 105  69  34 146\n",
      "  25 248  81 116 224 154 150  43 228 227  13  67 149 137   2  40 236 147\n",
      " 217 220 247  51 191 161  20  72 195 230 124 168   8 242 107  60 196 158\n",
      " 116  53  75  29  99 136 228 205 175 157 175  47 141 158 251 183 142 143\n",
      " 241 189  70 127 179 123 216  60  20 227 191 156  77 130  31  50  24  86\n",
      "  27 197 180 163  69 124 154 240  50 162  62 109 152 223 181 106 237 197\n",
      "  12 141 235  34  23  35 108 208  33  30 107  78 199  30 211  72 171   5\n",
      " 222  98 128  76  12  63  16  43 164 243  98  96  20 164 209  83 103 148\n",
      " 133 150  72  11  70 166 117 242 220  11 145 223 235 101 150  52  17  69\n",
      "  67 190  30  83  43   6 151  30  15 254  11  89 158 240  80  56 172  70\n",
      " 247 171 252  14  83 201 235 216  26 194 112 158  64 179 224 146  31 111\n",
      "  31  40   0 172   5 230 171  47 161 125 119 148 142 249 198 218  68 187\n",
      "  28  46 240 223 172 147 238   6 246 194  61  50 115  49 196 249 171 195\n",
      " 147 222  55 188 154  91 190  87 150 142 234  41 239  40 255  53 159 176\n",
      "  17 130 194 201 212 224  95 234  50 130   8  64 199 128  13  52 229 231\n",
      " 240 137 178 173  53  72  33  74  24 228  70 216 107  34 205 236 229 235\n",
      " 235  75 243 136  95 199  40 135 120 116  40 225 254  87 166  23 139 117\n",
      " 178  65 207 130 220  89 191 233 181   6  21 235 202 251 163 221  47 126\n",
      " 193  39  72  86  12  41 208 100 252 238 186 166  19 150  49 162  87 221\n",
      "  60 183 178 175 229  70 137   7  75 146  10  39  39  34 203 246  17 252\n",
      "  41 166  82   5 251 123 146  29 211 164  26 127 240 219 216  32 196 194\n",
      " 223 103  93 121  71 155 122 170   3   4  78 243  79   5 147 252 140  89\n",
      " 144 246 249 172  66 215 221 255 247 151 202 240  37   8  56  95  31  31\n",
      "  21  77 102 112 236 222 208 206 254 138 202 181 147 130 184 211  45   9\n",
      " 180  74 153 200 217 102  59  74 167  54  87  82  25  47 155 192 186 246\n",
      " 111  92  80 112  13  22  62  89  89 133  63 101 239  82 239 176 235  48\n",
      " 240 142 175 186 204 136 243  53 242 140 129 112 195  36 223 164 176 197\n",
      " 151 154 190 231  96  18  39  47   1  71  66 195 141 114  51 157 170 203\n",
      " 136 158 195 234 192 254  63  33  78 226  73 218  58 242  60  21 127  28\n",
      "  34 100 121  85  16  54  28  59  87 130  98 132  55 104   0  39 106  68\n",
      " 126  55   2  91 188 174 149 133  43 152   5  53 214 151 168 118 194  17\n",
      " 200   2  18  97 181  79 183 249  82  82  44 248 232 188  26   9  34 132\n",
      " 249 197 128 105 154 245  38 191 110  70 101 168  19  43 229  88  13 146\n",
      "  27 187 177 188 102 176  67 244 197 206 102   1  62 128 113 227 152 112\n",
      " 149  99 238 167 188 202 148 222  37  11 249 133  10 227 101 126 114 223\n",
      "  36 243  48 247  25  15 126 104  67 109  49 182 253 218  99 163  10  76\n",
      " 111  15  70 237  76 105 133 140  63 196 194 247  62 206 129 213  31 150\n",
      "  32  64  89  80  92 224 209  74 216  11 184  52   8 192 243 196 235 207\n",
      " 239 149  42 244  69 209 217   6  29 106 160  43 255  89 174 203  90  50\n",
      " 153 108 149 179  92  65 129  94 136  34 204 177  81  11   3  29  22 183\n",
      " 173 192  50 225 252  15  12  96 186 114 162  57 167 241 230 100 219 215\n",
      "  74  65  74 169 237  64 175   2 207  25  63  82 168  81  19 112 110 117\n",
      "  12 107 206 192 135 190 250  81 237 193 174  78 176  82 197  98 108  10\n",
      " 126 169 200  99  10  10 212 228 112 250 100 201  62  37 189  58 236  11\n",
      " 213  31  19  26 120 233 105 188  65  10 101  62  21  62 121 174 156 139\n",
      "  34  92 178  65  39 102 184  75  67 134 100  47 213  14 219 102 199 131\n",
      "  12 249 196 219  37 164  21 193  16 104  84  36 169 166 119  10 150 115\n",
      "  24  33  62  79  12 104  41 234   9 200  82  39 143   3 252 173 244  26\n",
      " 110 121 160  43 248 170 200 210 138  90 194 252 102 156   0  80  17 108\n",
      "  14  66 253 125 165 248 116  77 174 123  29  42  38 210 126 157 161  82\n",
      " 124 241 139  51  45 132  94 123 125 237  83 114  95 137 188 238 185 156\n",
      " 113 196 216 202 137  26  94 150  34  97]\n",
      "cb_subvector [[0.10570576 0.26927057 0.22149193 0.31736836]\n",
      " [0.90519345 0.16491756 0.4950811  0.5598735 ]\n",
      " [0.44274884 0.23783147 0.09436091 0.27170774]\n",
      " ...\n",
      " [0.43501222 0.18240945 0.86983067 0.9457006 ]\n",
      " [0.16281514 0.3030529  0.9194323  0.8643142 ]\n",
      " [0.46934104 0.9446982  0.54262775 0.05926402]]\n",
      "quantized_db[:, i] [  4 101 224 109 118 166 221   8 144  51 124 100 229 238 244 106  28 240\n",
      "  15 208 146 253  68  47 255 115  31 184  74 255 245  58 174  59 163 255\n",
      " 138 128 127 200 221   7 145  78 164  45 239   1  27 115 116  59  43 121\n",
      " 229 176  86  38 136 249 246 246  96 211 180 177  31 206  26  60   1  74\n",
      " 131 145  84 199  66  34 200 150  76  78 109   0  31  82 136  69  43 148\n",
      "  17 197 115  37 224 210 148  55 228  60  13  67 167  27   2  54 236  86\n",
      "  16 219  12 192 114 161  20 224  37 185  61 236  58  23 107 103 127  14\n",
      "  65 104  75  29 162  87 247 205 233 162 180 241 141 158 251  99 142  60\n",
      " 169 189  70  15 179 163 230  51  50 123  97 156 130 130 213  50 196  38\n",
      "  27 126 180 217 152 142 154  68 158  38  71  16 152  85 190 106  48 175\n",
      " 134  91  83 252 136  35 224 136 182  99 208  32 199 212 211  72  42 133\n",
      "  61 130   1 163  12  28  47  43 180  33 200 180  52 164  65  21  17 148\n",
      " 133 150  99 127  63  93  88  84  42  37 145 167 211  43  83  52  29 114\n",
      "  60 190  28  83  28   1 202  30  15  18  97 215 228 240  54 242 158 141\n",
      " 179  20  58  14 198 223 180 216  25 127  33 217 151   3   9 111  35 210\n",
      "  27   4 110  12 223 230  49 181 168 125  36 207 232 158 198 104 191  75\n",
      " 236  46 197 129 172 183 242 241 180 208  61 106 106  73 141 111 171  78\n",
      " 147 222  55 188 139   8 219 191 168 151 136  65 255   6 145  74 159 117\n",
      " 166 110 194 166  11  38 158 173 163  93  79 241 193 196 164  17  68 167\n",
      "  57 114 199 202 253 113  35 147  21 181 210 194 207 160 228   2 229 176\n",
      " 235 174  91 239 151 149 225 151 120 116  40 225 106 136 166  23  91 179\n",
      " 219   0 207 151 220   4  95 233  38 186 151  50 174 193 239  11   3  43\n",
      " 193  59 135  86 177 129 208 100  44 210 102  41  19 133 106 181  89 170\n",
      "  68 106  21 128  24   8 188   7  35 146  74 191 187 149 203 222 156  65\n",
      " 244  46 181  94  39  91 154 247 180 237  26 180 109 219 129 105  11  76\n",
      " 223  14  93 248  71 155 122 170   7   4 249 221  79 122 119 191  51 203\n",
      " 122  20 249 210 116  52 253 117 216 209 149 108  37   8  56 102 244 231\n",
      "  10  10 106  19 126 136  66 156 106 197 147 181  15  43 199 105  45   9\n",
      "  17 173 137 230 156 195 253 234 234  54  87  24 198  60   5  57 230 147\n",
      " 111 239  77 208 213  22 151 237 191  48  63 210 204 248 239  13 164  48\n",
      " 232 223 175  59 111  50 243  53  58 140 138 112  51  70 139  79  22  75\n",
      " 106 140  95 231 152 238  92  49  98  90  66 195 133 156  99 157  10  69\n",
      " 224  57  72 217 192 254 199 188 110 226  73  54  60 242  96 138  60 223\n",
      " 187 186  95  85  16  56  28 125  22 140 161 143  11 123 133  39   8 181\n",
      " 245  77 162  28 136 227  22 154 249 195   5 153  34  84 151 133  52  17\n",
      " 200  13  18  97 185 198 206 182 221 231  44 248 232 252 194  65  10  48\n",
      "  94 228  54  14 194 245  75  77 245  31 110 249  73 231 163  88  87 216\n",
      " 221 187 177 120 220 215  40 244 197 112 146   1  62 106 225 226 222 219\n",
      " 149  99 187  42  28 144  65  63  60   3 190  18  10 228 101  17 114  87\n",
      " 124 173 161 247  25  87 229  61 163 109  49 182  76 218  39 161  46  31\n",
      " 157 110  68   8 104  88   3 180  98 196 210 201  15 157 148   4 185 174\n",
      " 217 161 187  24  92 214 209  93 208 159 180  66 146 220 211 188 114 234\n",
      "  35  61 197 231  67 207 217   6 214  56   3   3 114  89  61 242  84 117\n",
      " 153 108  68 144 119 201 129 119 136  53  81  21 146 103 218  76 147 241\n",
      " 106 239  48  44 188 178  78  50 186 106 141  57 193 152 169 200  29 215\n",
      " 104 207  77 200 196  64  38 162 214  32 239 229  62 117 174 158 115 117\n",
      " 245 189 206  50 135 160 254  81 132 212 174  78 176 154 132 134  35 183\n",
      " 252 164 138 239 160  37  13 232  46 250  49  88 176 193   1  58 226 213\n",
      " 213 183 204  65 110 137 105 223  65  31 254 239  68 226 179 224 175 119\n",
      " 254 186 178 183   3 118 184  50 198 134 136 194 230 102  21  21 112 131\n",
      " 216  15   9  55  85  10  53 103 102 252 127  36 169 233 119 254  43  31\n",
      "  24  33  80 156   5  56  41 234  35 201  82  53 143 194 252 173 186 241\n",
      " 167 190 160 248 117  15 120  96  80  90 210 133 102  70  82  80  85  54\n",
      " 218  72 253 213 165 161 122  77 203 123 247  42  48  11  86 146  48 174\n",
      " 124 158 139 234 170 132  61  37 232 237 221 134 179 137   1 238 185 253\n",
      " 113  85 191 202 239 233  94 190 203 114]\n",
      "cb_subvector [[0.49254164 0.69882107 0.1234705  0.12329634]\n",
      " [0.2329852  0.03847626 0.27517366 0.18624717]\n",
      " [0.09625621 0.10053205 0.58392155 0.39461356]\n",
      " ...\n",
      " [0.85032004 0.6540496  0.6951017  0.13785194]\n",
      " [0.81019473 0.72441226 0.04535712 0.41788095]\n",
      " [0.34029153 0.16277763 0.49114594 0.46026853]]\n",
      "quantized_db[:, i] [236 137  98  87 118  68 163   9 144 160 232 195 161 157  69  25 195 171\n",
      "  12 187 230 133 182  47 123 115  31 226  74 255 129 103  96  59 138 107\n",
      " 251 115 127 154 234  49 127  23 183 130 244 170 165 160 176  94  32 121\n",
      " 191 145 182  38  66 204 147 246 153 181 182 144 221 248 155   1 185  49\n",
      " 107 186  84 211 150  34 200 191  76  20 235   0 195 118  77  69 188  82\n",
      " 130 137 138 118 224 201 108 180 228  20  13  67  13   9   2  65 236  95\n",
      " 129  77 117 186  16 161  20  63  72  35 210  61  80  86 100 193  35 197\n",
      " 170 137  75  29   8 159 247 205 190 162  62 214 141 158 251 255 142 156\n",
      " 232 189  70  18 179 146  37  51 236 243 240 156 121 130 244  50  75  67\n",
      "  27  92 180 163  22 220 154 148  18  55  76 218 152  87 182 106 167 119\n",
      " 206  29  97 188   3  35 139 155  47  82 181  29 199 124 211  72 155 105\n",
      "  35  46 111   5  12 149 215  29 255  16 176  62  49 164 120  46 177 148\n",
      " 133 150 218 255 176 147  93  77  66 231 145 157 228 242 218  52  44 172\n",
      " 217 190  82  83  94   9 202  30  15 157  37  87 118 240  18 157 144 222\n",
      "   6 201 124  14 173 177 188 216 107   9 108 111 208 173   6  42  34  92\n",
      "  54 165 218 180 231 230 173 185  69 125  83  96 244 120 198 196 221 137\n",
      " 149  46   1 146 172  38 205 210 164 126  61  48  23 130  72 253 171 121\n",
      " 147 222  55 188 186 238  35  48 184  63 121 126  45 149 109 195 159  40\n",
      " 255 198 194  88  93  79 196  89  79 185 191  57 205 109  89  35 235 167\n",
      " 184 254  33 171  20   6 130 198  21  34 164 126 113 168  20  52 229  52\n",
      " 235  68  91 145  21  81 104  37 120 116  40 225 108 147 166  23 213 224\n",
      "  44 117 207 222 220  12  48 233  83 161 208  88  91  13  65 155  32  26\n",
      " 193 217   7  29  56 208 208 100 105 148 100 151  19 202 196  36  43 216\n",
      "  60  59  45 106 111 205  96   7 167 146 240 239 188 243 203 137 155   2\n",
      " 180 242 194  73  35  62  15 196   9  10  26 141  36 219  26 186  79  76\n",
      " 223  51  93 157  71 155 122 170 246   4  85 248  79 162 207  53 123 209\n",
      " 186 234 249 210 162  87  70 149  53  42 107 114  37   8  56  90 117 104\n",
      " 112 197  61  47  97 121 140  21 178  40   5 181 176  71 250 146  45   9\n",
      " 194  11 124 218 154 170 192  60 244  54  87 117  21 194  84 151  39 196\n",
      " 111  87 107 179 150  22 151  48 141 213  63 236  88 217 239 186 133  48\n",
      "  69 124 175  82 146  19 243  53 188 140 255 112  78  17 113 199  81 190\n",
      " 134 194 135 231  72  51  60 178  98 124  90 195 209  80 228 157  32 246\n",
      "  18 237 181 255 192 254  69  88 110 226  73  46  95 242 115  91  41 237\n",
      " 231 132  23  85  16  87  28 184 104  21  90 113 236 104 195  39 205 251\n",
      " 241  59 218 169  43 227 161 190 239 121   5 109 214 173 145 191 133  17\n",
      " 200 204  18  97  19  43 183  14 132 110  44 248 219 127 107 190  87 155\n",
      " 176 117 217 117 178 245 255  92 177 215 109 151 190 185 216  88  17 170\n",
      " 221 187 177  48  26 120  79 244 197 128 100   1  62  64 135  73 106 213\n",
      " 149  99 141 105 151  40  44 109 182 131 217 129  10 193 101 162 252  37\n",
      " 133   3 124 247  25  72 126 157 190 109  49 182 200 218 158 189  14 255\n",
      "   8  88  41 106  77 221 214  85 210 196  12  81 104 122 182  12 236 224\n",
      " 117 106 129  25  92 193 128 177 116 185 120  76   5 211 115 157  89 251\n",
      "  46   8 195 119  71 241 217   6 215 209   3 166  20 100 254  77 135  13\n",
      " 153 108 192 152  35 182 129 129 136  38 204 194 221  11 227 147 117 237\n",
      "  84  15 210  36  64 148 217  96  15  57  73  57 126 171 175 202  96 215\n",
      " 186 102 136 227 174  64   0  22 226  54 152  34 168 141  73 248 171 117\n",
      "  10 187 206  18 135 207 146  81 203 212 174  78 176 110 176 251 179  63\n",
      "  55 206 232 240 159 152 117 127  48 250 207  69 136 124 178  58 182  17\n",
      " 213 118 162  85  53  39 105  84 233 130 188 143 115 166 228 229  34 183\n",
      " 198 223 178 128  28 113 184  33  31 134 102  92 198 186  12  82   6 131\n",
      " 143  72 245  89 193  40 175 103 212 214 114  36 169  20 119 128 110   6\n",
      "  24  33  66 245 108 174  41 234  45 163  82  33 143 155 252 173 202  48\n",
      " 138  25 160  15 227 126  96 127 138  90 136 159 102  78  80  80   5  47\n",
      " 148 123 253 103 165 156  25 192  45 123 136  42 204  93 246 153 196 130\n",
      " 124 175 139 116 193 132 143 136  81 237  95  28  95 137 167 238 130  11\n",
      " 113 145 201 202 190 236  94  44 159 217]\n",
      "cb_subvector [[0.27962694 0.63584834 0.91694486 0.53394836]\n",
      " [0.2426624  0.7251195  0.945953   0.12979779]\n",
      " [0.57633185 0.14358485 0.6673066  0.17198315]\n",
      " ...\n",
      " [0.21690436 0.93393373 0.2053849  0.5877201 ]\n",
      " [0.5595244  0.69273365 0.9598247  0.8827918 ]\n",
      " [0.27880925 0.19750035 0.71294403 0.839449  ]]\n",
      "quantized_db[:, i] [161   6 179  18 118  68  82  81 144 193 248 197  98 158  30 239 167 169\n",
      " 188 176  90  41  40  47 143 115  31  41  74 255   0  17 231  59 224 103\n",
      " 140  64 127 179 152 196 175 156  62 165 110  12 178 251 156 107 175 121\n",
      " 222 174 174  64  39  18  14 246 106 237   1 254  69 124  71  24 157 108\n",
      " 192 144  84 244 231  34 109  36  76 123 166 207 218 213 101  69  43  92\n",
      " 125 243   4 170 224  98  28 214 228 139  13  67 128 125   2 158 236  17\n",
      " 210  24 244 207  61 206 160  88   1 147 130  22 222 130 107  25  55  34\n",
      "  13 168  75  29  38  36 218 205  70 162 148 161 141 130 251  93   7 137\n",
      " 193 189  77 166 179  30  75  51 213 193 185 156  25 130  50  50 209  15\n",
      "  27 245 180 163  78 240 154 244 117 124 190 205 152  78   0 106 181  78\n",
      "  93 218  11 149 181  35 138 243   5 194  65  32 199 234 211  72 172 186\n",
      " 218 129 253 197  12  38 175  43  55  26 228  60  41 107 112  21 216 148\n",
      "  91 150 166 193 149 142 130  23 217 209 145 202 158 225  61  52  41  32\n",
      " 191 190 147  83 216 216 139  30  15 154 253  15 159 240  49 245 199 219\n",
      "  41 201 235  14 239  31  19 216  98 154 186 194  30  52  58 135 121  49\n",
      " 123  44 135 159 116 230  64 170 233 125  44 106  34  96 198 111 179 233\n",
      "  64  91 199 253 172 213 198 164 144 112  61  64  81  38 145  43 171  85\n",
      " 147 222  55 188   0   5  45 225 248  41  72 210 210  39 205  17 159  44\n",
      "  56 185 194  24  35  52 202 164  70 162  47 240  78 162 130 138 244 167\n",
      " 154  26 180 160  64  65  21 122  21  51 154  25 152 145 213 186  17 112\n",
      " 235  18  91 190 170 152 243 162 120 116  40 225 181 159 166  23 130 228\n",
      "  20  23 207 162 220 183 177 233  12  60 171  18  51  23  34  38 111  41\n",
      " 193 177  21  86 234  22 208 100 200  37  25 135  19 129 202   3   0  85\n",
      "  60 100  56  18  53  42 158   7   3 146   9  92 220   0 203 199  26  41\n",
      "  27 114 151 157 103 244 148 170 225  80  26  96 254 219 232 166 225 111\n",
      " 223 149 113 229  71 155 122 170 194   4 179 227  79 204 220  64  92 230\n",
      "  70  67 249 210 131 219 121  97 172  30 233 101  37   8  56 252  86 181\n",
      " 181 191  86 251 156  34  67 158   5  71  92 181 201 102 126   8  45   9\n",
      " 173 181 215  25  29 166 213 103 167  54  87 115 222 149 123  36  78 158\n",
      " 111  73  58 211  71 247 151 201 202 129  63  20  70 170 239  35 121  48\n",
      " 183 146 175 122 111  31 237  53 153 140 177 112 101  87  23 205   5  36\n",
      "   1   8 214 231  78  77  17  33  98 243  66 195 188 229 216 157 110  97\n",
      " 144 184  41 129 192 254   7 165 110 226  73 122 210 242 154 132   1 248\n",
      "  34 105 230  85  16  21  28 232 167 217 200  23  90 104 140  39 240  24\n",
      "  40 170 184 133 186 227  91 197 145  15   5  18 214 230  72 191 160  17\n",
      " 200  82 134  97  51  20 183 217 228 120  44 248 232 123 160  62 108  37\n",
      "  12  21  33  23  68 245 231 137 140 159 249 211 169 110 152  88  69 155\n",
      " 221  59 177 171 201 176 201 244 197 128 232   1  62  84   8  51 160  85\n",
      " 149  99 153 226 170 243 152 157 155 129 147 112  10 167 101  37 114  92\n",
      " 100   9 122 247  25 195 126  33  96 109  49 182  71 218 168 158 248 161\n",
      " 187 151 247 252 143 159 207 163 231 196  64  34 196 112 128 134 112 236\n",
      "  35 186  32 137  92  45 209 139 199 169 164 140 155 219 232 193  20 221\n",
      " 235 142 102 123  85 241 217   6 245 194   3  21  11  89 143 121  96 103\n",
      " 153 108  45 176 139   6 129 245 136  53 204  14  76  11 213  52 195 232\n",
      "   4 187  24  96 166  96 128  96 186  29  30  57 115 189  50 158 191 215\n",
      "  21 140  98 197  85  64 112 146 109  62 111 121 168  30 159 121 232 117\n",
      "  74 251 206 130 135  95  80  81 135 212 174  78 176  31 131 212  23 132\n",
      " 159  42  50 235  28 188 132  64 115 250 172  46 142 102 214  58 165  20\n",
      " 213  92  36  15  98  16 105 156  65 249 102 127  19 238 162 215 162  22\n",
      " 123 218 178  51 139 157 184 186  36 134 189 152 130  11 194   4   3 131\n",
      " 105 249 155 225 202 214 252 103 175  48 105  36 169  58 119 172 228 173\n",
      "  24  33 115  40 194 174  41 234 232 181  82 185 143 174 252 173  88 197\n",
      " 102  20 160  93 228  85   3  89 138  90  43 244 102 161  33  80 212 117\n",
      "   3 185 104 171 165 254 169  77 115 123  98  42 140 185 207 100  85 213\n",
      " 124  11 139 190  47 132  64  65 133 237  36 254  95 137  68 238 185  16\n",
      " 113 126 126 202 112 225  94 129  43  21]\n",
      "cb_subvector [[0.8366819  0.3961501  0.43418175 0.32177943]\n",
      " [0.32752386 0.9231994  0.5587392  0.5660559 ]\n",
      " [0.25586438 0.76887745 0.49578753 0.33738115]\n",
      " ...\n",
      " [0.26960677 0.20419295 0.7937397  0.60162705]\n",
      " [0.80972415 0.05046442 0.65814996 0.50975025]\n",
      " [0.4589533  0.63549745 0.55288714 0.9150645 ]]\n",
      "quantized_db[:, i] [193 214 202  12 118  68 103  72 144 214 167  51  74  13  92 249 228 102\n",
      " 158 143 117 173 188  47  23 115  31  24  74 255 164  44 137  59 226 170\n",
      " 239 208 127 158  56 198 134 210 171  37 153  32 165 220  47  98 234 121\n",
      " 110  59 253  38 206 174  91 100  65 191 197 212 138  98 251 134  22  57\n",
      "  76 153  84 220 202  34  34  72  76 179 109   0  94  11 205  69 252 232\n",
      "  18  96 195 219 224  79 130 223 228  70  13  67  97 225   2 226 236 216\n",
      " 246 240 187  85  27 161  20  71 138  81 177 109 123 225 107 102 165 253\n",
      "  15  78  75  29  91 164 193 205 246 162 180 223 141 158 251  50 142  93\n",
      "  24 189  70  99 178 180 212  51 138 110 142 156  21 130  38  50   1  68\n",
      "  27  70 180 163 156 112 154 173 117  18  95 154 152 203 250 106 247 154\n",
      " 203 154 243  11 196  35 151  28  99 101 171  32 199 149 211  72  56  60\n",
      " 160  86 112 123  12 165 138  43 119 199 135  24 192 164  43 188 227 148\n",
      " 133 150 237   5 150 170  48  30 168 109 145 183 189 204 220  52 202 119\n",
      " 136 190  73  83  45 111 191  30  17   7 254  43 118 100 151 101 215  21\n",
      " 165 201 208  14  46 136  64 216 121 122  96 242 142 188 116  68 159 242\n",
      "  97  38  21  44 225 230  90 250 161 125  86   6 179  41 198 166  61 239\n",
      " 161  46 202 200 172 104  63 216 179 164  61 129  59  39 229 114 171  59\n",
      " 147 222  55  41  59 122  67 194  31   5 123 188 109 253  48  28 159  41\n",
      " 212 163 194  14 130 187 198 154  97 208 189 159 174 243 102  30  27 100\n",
      "  62  67  47 136 150  84 104  90  21  78 147 136 229 143   5  67 229  21\n",
      " 235  98  91  14  60 227 133 159 120 116  40 225 210 118 166  23 236  11\n",
      " 252 172 207 173 220  91 167 233 208  99  68 115  78 183  95  98 149 135\n",
      " 193 186 220  86   7 209 208 100  63  79 238  28 252 114  44 220 115 212\n",
      "  60  18 171 114  56 165 142   7 114 146 220 209  19  14 248 176   3  34\n",
      "  29 199  80 206  67 203 251 220  32 172  26 161 209 219  63 232 228  63\n",
      " 223 143  93 101  71 155 122 139   6   4  84 120  79 117 240 134 130 216\n",
      " 141 137 249 210 238 100 244 136 240  16 165 112  37   8  56 131 127 137\n",
      " 156 119 251 169 126 110  21 205 213 203  45 103  80 198 167  31  45   9\n",
      "  67 112 152 110 104 250 110 176   9  54  87 169   6 118 250  74 186 128\n",
      " 195  96  12 214  98  22 151  66  92  74 243  37 113  61 239 107 238  48\n",
      "  18 214 175  72 226 169 243  53  15 140 112 112  63 156 178 181 104  12\n",
      " 170 117 229 231  19 250   3 201  98  78  66 195   7 191  38 157  39 193\n",
      " 114  68 116 189 192 254 196 126 110 226  73  78 240 242  96   8  24 141\n",
      " 131 202 222  85  16  65  28  84  91  54  16  32 146 104  93  39 227 180\n",
      " 229 241  31 248  34 227 234  86 219 255   5 139  78 225 106 191 158  17\n",
      " 200   8 202  97   3  20 183 157 205  34  44 248 232  27 143 122  97 120\n",
      " 243 237  96  64 140 245 165 145  64  31  64 189 253 122 192  88 174 130\n",
      " 221 187 177 227 132  86  97 244 152 128  81   1  62 128  70 205  24  12\n",
      " 149  99 244 113 118 130 241 173 231 102 232 102  10  57 101 109 114 168\n",
      "  99   1  61 247  25 151 126 212  86 109  49 182  82 218 173  19 137 147\n",
      " 136  32 241 174  16 150 254 116 136 196 191 166 209  73 203  97 130  29\n",
      " 124 142  92  95  92 103 209 189  57 194 178 201 172  56  92  49  82  57\n",
      "  12  42  74 175 186 241 217   6 251 130   3 123  89  89  32  71  91  45\n",
      " 153 108 215 100  11 206 129 163 228  39 204  81 146  11 120 158 107 174\n",
      "  16 138 158  55 119 244  45  96 186  92 220  57  42  54 141 139 237 215\n",
      "  29  94  43 124 250  64 117  59 239  16 213  17 168  88 153 169 242 117\n",
      "  80 181 206 213 135  68 160  81  97 212 174  78 176 248  72 116 161  66\n",
      " 244 103 240  38 155 173 102  35  56 250 218 217 155  20 248  58  23   8\n",
      " 213 253 249 251  38 159 105 219  65 226  24  70 162  82  77 225 151  56\n",
      "   2   1 178 163  12 146 184 227 213 134 190 229 170  79   5 101 109 131\n",
      " 250 204  74 114  68  10 248 103 189  89  41  36 162 229 119  78  87 226\n",
      "  24  33 239 214 196 106  41 234 234 205  82   0 143  60 252 173  18 234\n",
      " 126 242 160  19  33 102  63  89 138  90  98 136 102 178  57  80 201   5\n",
      " 127 217 240  51 165   5 165  77 193 123  96  42 239 142 179 141 109 188\n",
      " 124 224 139 239 118 132 236   3 182 237 234 200  26 137 251 254 185 137\n",
      " 113 209 139 202 210 169  94 132 164  77]\n",
      "cb_subvector [[0.16061555 0.88615364 0.24333449 0.5364082 ]\n",
      " [0.07279085 0.43958402 0.957751   0.38252708]\n",
      " [0.5183913  0.63554525 0.9319596  0.7606328 ]\n",
      " ...\n",
      " [0.15613186 0.60073775 0.0971029  0.5379979 ]\n",
      " [0.32090038 0.09037308 0.16975944 0.8941571 ]\n",
      " [0.7071535  0.06805542 0.9519195  0.8581745 ]]\n",
      "quantized_db[:, i] [ 78 183 254  11 118  68 220 225 144 127  53  76 176 140  15  49   6 187\n",
      " 211  70 218 149  48  47 183 115  31  77  74 255 246 207 221  59 126  34\n",
      "  97 161 127  19  16 125  71 180 118 208 136  59 169 220  91  41 133 121\n",
      " 234 228 120  38 232 130 145 246 157 188 246 122 206 111  68   9 196  44\n",
      " 181   2  84 111  99  34  13  69  76  45 109   0 199 175  11 123  33 143\n",
      " 143 178  24 227 224 194 150  20 228 192  13 242 154   7   2 191 236 170\n",
      " 127 119 121  67 186 161  20  79  84 141   5  54 155 178 107 118   0 186\n",
      "  42 220  75  29  96  29 192 205 229 162 173 210 141 158 251 235 142  10\n",
      "  60 189  70 209 179 108 136  51 151   6 114 147  54 130 171  50 183 228\n",
      "  27  16 180 163 224  96 154  94 161 167 193 227 152 176 111 106 163 145\n",
      "  50 108 179 186 118  35 182 100 181 136 209  32 199  58 211  72 213 102\n",
      " 108 160 214  40  12 231 201  43  41 211  26 244 164 164 218 255 202 148\n",
      " 133   2  72  47 205  64  38 128 113 178 145 216 143   1 163  52 238 101\n",
      "  85 190   8  83  48  75  63  30  15  56 224 208 141 240  52  30 181 127\n",
      " 245 201  21  23  68 192  62 216  51  32 136 111 161  95 194 210 132 113\n",
      " 204 249 254 156 143 230  16  49 127 125 243 217  11  54 198 246 188  69\n",
      " 164  46 229  54 172 100 163  41 255 181 167 216  19 139 116 150 171 116\n",
      " 147 222  55 188  83  43 237 169  48 167 113 192 198  94 241  38 159 213\n",
      "   8  91 194 117 136 205 247  48  60 227  63 212 136 199  24 194 224 167\n",
      " 143  90 252 245  44 184  10 161  21  28 198 190 194  68 110 180 229 210\n",
      " 235  23  91  67 213 208  84 150 120 116  40 225 188  67 166  23 130 175\n",
      "  40 222 207  68 220  65 166 233 252 240 246 115 144 103  90 191 130 184\n",
      " 193 250 138  86 112 158 208 100  28   1 217 198  19 194 104 161   5 118\n",
      "  60 253  96  80  83  82  14   7  42 146 157   5 146  24 203 162 252   2\n",
      " 183  53 115 218 219  71 249 169 193 208  26 221  24 219  18 143 173 236\n",
      " 223 172  93  99  71 155 122 170  74   4 110  99  79  94 233 170 114 194\n",
      "  61 179 199 210 243 216 125 136 181 149 254 141  37   8  56  88  77 255\n",
      "  29  36 149 135 247  17 252 132 152 225 214 181 227 137 102  77  89   9\n",
      "  58 113  52 201 165 187 109 174  97  19  87 218 246  62 232 173 185  71\n",
      " 111 175  15 152 163  22 151 229 234  22  63  58  56 132 239 163 184  48\n",
      "  53 152  93 239  38  23 243  53 253 140  61 112 238 160 130 212 131  60\n",
      " 217 181 120 231  96  84 145 180  98 130  66 195  49 150 244 157 130 188\n",
      "  16  28  51  55  83 254 188 255 110 226  73  31 122 242  41  27  94 254\n",
      "  53  71 224  85  16  51  28 233  95 155 203 159  76 104 132  39 210  67\n",
      " 145 102 130 241 170 227 104 221 150  99   5  28 214 141 100 191  69  17\n",
      " 200  65  18  97 159 148 183 253 102 178  44 248 232  79 132 104 201 173\n",
      " 202 254 205 151  63 245 232 244  27 113 102 157 193 227 132  88  92 220\n",
      " 221 187 177  16 217  43 157 244 197 128  86   1  62 101 164  32 232 232\n",
      " 149  99  34 180  81 189 161  77   5 221  72  69  10 103 101 151 114  21\n",
      " 216  65 148 230  25   5 126 139 163 109  49 182  81 218 142  57  29 124\n",
      " 161 152 237 208 121 129 249 168 207 196  14  89  14  14  33 234 134 210\n",
      " 250 122 189 251  92  81 209 133 208 194 241   8 222  74  19 184  20 228\n",
      "  36  38 164  26  62 241 217   6 185 245   3 247 228  89  61 191  96 133\n",
      " 153 108   3  29  23 180 129 186 136  90 204 198  22  11  68  26 236  79\n",
      " 128  66  73 121 159 183 217  96 166  24  40  57 151  70   2  96  65 215\n",
      " 190 206 100 167 122  64   3 175  77 145 200 170 168 204  94 130 148 117\n",
      " 113  68 206  31 135 183  14  81 229 212 174  78 176 101 113  86  49  29\n",
      " 168  19 178 237  25  49  89 140  54 250 170  36  41 232 112  58 227 132\n",
      " 213 190 103  28 118  15 105 113  65 100 158 137  60 244 127 148  85  54\n",
      " 110 189 178 190 212  42 179  15  70 134 246  50 151  14  51  10 144 131\n",
      "   1 101 137 186 152  75  13 103 162 122 171 137 169  45 119  74  68 157\n",
      "  24  33 117 139 227  54  41 234 232 178  82 194 143 192 252 173 101 161\n",
      " 113 224 160 138 247  32 176  81  93  90 129 121  30 133  68  80  76  68\n",
      "  53 112 253 143 165 222 112  77  47 123 195  42 178  15 140  65 114 200\n",
      " 124  96 139 249 148 132  76  48  42 237 189  66  95 137   7 238 185 210\n",
      " 113  74  94 202  27  70  94  53  37  29]\n",
      "cb_subvector [[0.5438316  0.47380868 0.05681575 0.90673196]\n",
      " [0.06908771 0.5168552  0.8959391  0.46040237]\n",
      " [0.22374487 0.7550788  0.69023174 0.10376202]\n",
      " ...\n",
      " [0.16417426 0.85896504 0.93999064 0.8805349 ]\n",
      " [0.30955794 0.6195943  0.8850556  0.48736063]\n",
      " [0.31367916 0.59757215 0.47807112 0.6249082 ]]\n",
      "quantized_db[:, i] [161 188  65  60 118  68 168  86 144 136  64 177  12 213 230  87 178 122\n",
      " 153 191  92 120 131  47  51 115  31  55  74 141 210 135 142  59 242  30\n",
      " 125   3 127 121 252 136 208  19  45  58 187  55 119  94 238 164 251 121\n",
      "  62 117 185  38  29 234  30 246  10 234   4  35  77 161 208  39   9 101\n",
      "   9 176  84 190  75  34   3 209  76  73 205   0  48 238 234  69  50  17\n",
      " 122 157  11 179 224  49  82 112 228 233  13  67 250  61   2 154 236 198\n",
      "  74   3  25 189 163 161  20  44  55 248 122  16  99  99 107  76 231  35\n",
      "  91 193  75  29  94 194  77 205 138 162 154 233 141 158 251 189 142 204\n",
      "  91 189  70  90 179 204 214  51  10  33 254 156 254 130 232  50  58  57\n",
      "  27  29 180 163 138 176 154   0  67 241  68 213 152 169 110 106 167 236\n",
      " 133 148   9 212  20  35   2 154 157 101 238  32 199 120 211  72  41 248\n",
      "  58  19 225  70  12  79 151  43 184  75  22  42 190 164 111 213  78 148\n",
      " 133 150 227  47 243 213  44  56  19 122 145  50 255  44 244  52 186  16\n",
      " 144 190  93  83 222  78  68  30  15  79 174 111 143 240  98 131  57 161\n",
      " 120 201 102  14 121  30 139 216 109  55  45 157 131 174  25 208  42 216\n",
      " 101 131 194 175 156  80 127   1  90 125 227 222 253 220 150 184  41 105\n",
      " 171  46  99 112 172  66 237 123 121 126  61 190  39 145 197 169 171  62\n",
      " 147 222  55 188 226 207  10  57 208 243  82  30 165  50  87 152 159 195\n",
      " 121 235 194 103 117  19  44  43 235  81   0   1  52 170 235  32  76 167\n",
      "  27 213 189 231 162 115 126 140  21 202 214 143 185 140 201 175 229 186\n",
      " 235 167  91 196 210  51 178 151 120 116  40 188 191 204 166  23  97 237\n",
      " 254 167 207 122 220 212  55 134 105 214 103 177  20 236 141  25 188 190\n",
      " 193 156 214  86 108 104 208 100  51 175 213 222  19 214 131  68 253 190\n",
      "  60 100  29 223 193 159 211   7 146 146 145  63 136  49 203 123 248  97\n",
      " 183 189  35 224 108  15 156 241  69 206  26 172  70 219  11  23  61 196\n",
      "  36 245  93 173  71 155 122 170 239   4 112  35  79 218  25  36  81 157\n",
      "  20 168 249   9 103 151  10  69 124 209 182 125  37   8  56 186  25   6\n",
      "  46 115  62 157  79  39 218 141 150 254 208 181 122  77   0 216  45   9\n",
      "  26 197 156 239  21  41 203 161  99  54  87  32 242 244  55  63  30 222\n",
      " 111  21   3 244 184  22 151 111 128 138  63 242 156 184 239 153  46  48\n",
      " 126 122 175 239  61  77 243  53 101 228 208 112 233  48 135 103  27 170\n",
      " 213 143  61 231 204 243 237 234  98 197  66 195  73  45 131 157  42  15\n",
      " 110 119  21 151 192 254  67 178 110  15  73 157 234 242 218  28 233 228\n",
      "   7   6 165  85  16 246  28   7 237 236 159 207  89 104 163  39   2 225\n",
      "  91 156 161 172 112 227 239  16 233 158   5 136 214 136  19 191 246  17\n",
      " 200   0  18  97   4  21 183  30  43 189  44 248 232 162 167  45 239 158\n",
      " 198 131 243 144 205 245  90  12  43 236 201  87 139  94 187  88  13 249\n",
      " 221 187 177 211 112 114  72 244 197 128 209   1  62 252 237  35 251 198\n",
      " 149  99 234 195  20 240 157 255 120  53 116  44  10  55 101 171 114  90\n",
      "  62  57 223 247  25  29 126 196 132 109  49 182 123 218 126 197 104 192\n",
      " 211  54 215 110 187 198   4 155   9 196 116  97  85  44 154 236 177 115\n",
      " 175 120  65  24  92  39 209 217  10   6  26 168 114 173  19  85 179  48\n",
      "  71  45 213 246 105 241 217   6 152 205   3  61  28  89 113 202  31 207\n",
      " 200 108 120 173  72   7 129 213 136 220 204  91 226  11  23  10  28  48\n",
      " 225 201  99 111 236 175 228  96 186  63 255  57  87 191 135  32   4 215\n",
      " 151 104 191 136 244  64 245 173 109 171 248  76 168 229  90  55 110 117\n",
      " 233  21 206  38 135 103 128  81 227 212 190  78 176 141  71  17 186  54\n",
      " 136 245  97 219 241  11 169 234 236 250  17 178  19  98 212  58  98 195\n",
      " 213  60 165 239 112 187 105 196  65  56 169 148 172  73  98 220 249 152\n",
      " 168 123 178  54  10 146 127 174  11 134  87 162 217 197 198 131 174 131\n",
      " 169  23 189 109  30  19 145 103 205  96  93  36 169  57 119 104  99 165\n",
      "  24  33 139  47 161  82  41 234 184 108  83 236 105  21 252 173 121  18\n",
      " 129 165 160 212  91  15 170 162 138  90  70 177 102 217 237  80 120  13\n",
      " 222 146 253 233 165  58 128  77  30 123 202  42  17 184 195  13 100  23\n",
      " 124 227 139 169 217 132 217 183 120 237  90 183  95 137 254 238 185  42\n",
      " 113  24  24 202 167 125  94   9 154  29]\n",
      "cb_subvector [[0.86843234 0.11157162 0.15005796 0.5422201 ]\n",
      " [0.8167316  0.7337566  0.19379014 0.5630105 ]\n",
      " [0.8732976  0.4657671  0.84852135 0.22989456]\n",
      " ...\n",
      " [0.09908177 0.7223729  0.50559974 0.19539814]\n",
      " [0.71138155 0.6131841  0.6439035  0.62176704]\n",
      " [0.1347099  0.67932767 0.92035437 0.91161454]]\n",
      "quantized_db[:, i] [226 190 172  53 118  68 170 189 134 203  21 207   9 137  23 109 106  18\n",
      "  65 130 173 189 151  47 238 115  31 224  74 255 180 174 145  59 154 229\n",
      "  97  56 127 122  47 229 218 181  92 122  79 139 120 109  59 154 245 121\n",
      "  22  92 132  38  41  54 203 246 224  40 179 163 174 193 214  16 195 107\n",
      "  68 179  81 228 190  34 192 230  76  79 156   0  68   3 184  69  27  27\n",
      " 164 136 181 161 224  12 197 124 228 248  13  67  62  39   2 135 236 128\n",
      "   0 118  82 255 153 161  20  79 202  44 104 113  60 106 107  35 195 253\n",
      " 222 205  75  29  93 250 111 205 196 162  78 217 141 158 251 100 142  39\n",
      "  72 189  70  68 179 164 182  51 189  30 191 156 196 130 141  50 238 164\n",
      "  27 160 180 163 100 185 154 182  65 212 195  14  28   8  79 106   1 164\n",
      " 229  22   2 241 244  35 178  16 139  17 179  32 199  90 211  72 167 107\n",
      "  70  22 128  13  12 179  41  43 120  77 191 158 190 164  74 254 123 148\n",
      " 133 150 123 248 147  69 183  77  49 137 145 183   6 201 184  52  72 146\n",
      " 128 190 122  83 162 236  78  30  15 108 118 217 187 193  59   2 242 159\n",
      " 244 201  35  14  29 214  52 216 229 194  49 211 234  69   0  99 240 203\n",
      "  90  34   8  68 198 230  77 157  38 125 203 228 219  94 198  95 253  87\n",
      " 215  46 185 209 172  41 139 165 152  57  61  48  44 149 197 116 171  39\n",
      " 147 222  55 188  36 203 124 204 139  41  15  90  46 137  17 146 159 194\n",
      " 242 170 194 172 245 225 114 147  10 214 201 118  16 222 191  22 175 167\n",
      " 147 175  62  59 148  31 188 196  21  84  63  25  33  26  96 122 229  46\n",
      " 235 131  91  75 254 215  74 248 120 116  40 228  17 156 166  23 211 104\n",
      " 205  80 207 149 220 195  55 233 246 144 110 188 182 106  86  75 132  30\n",
      " 193 154  98  86 109  31 208 100  56  49 193 240  19 162  13  48 248   9\n",
      "  60 182 102  69 115 110 139   7 182 146  79 212  30  75 203 170 225 224\n",
      " 219  94 215 200  60 242 249 115 146  99  26  95 217 219 143 244 254 213\n",
      " 223  56  93  90  71 155 122 170 199   4  43 177  79 109 254 169 171 199\n",
      " 217 172 249 210  60 180 160 231 145  11 232   7  37  10  56  87 235  81\n",
      " 114  87 191 160 203 149 249  86 159  74  96 181 240  29 173  51  45   9\n",
      "  38  52 226 206 188   1 156 192 182  54  87 130  18 191   8 144 166 251\n",
      " 111  64  82  78   8  22 151  39 146 171  63  20  72 251 239  83  99  48\n",
      " 233  84 120 242 105 176 243  53 128 140  72 112 236  51 114 143 194 217\n",
      " 176 197 136 231  56 245 132 198  98 158  66  14 144 225 214 157 116  84\n",
      " 247 198 236  70 192 254 216 246 110 226  73 132 247 242 176  38 231 102\n",
      "  53   4  31  85  16 170  28 254 194  90  32 175 189 104 124  39 208  72\n",
      "  77 101  98  32  75 227 249  23 152  55   5 242 214 154  41 191 152  17\n",
      " 200 163  18  97  10 136 183 189 242 165  44 248 232 249 173 248  79  83\n",
      " 239   7   2 122 116 245 134 146   2  96 222  47 236 217 131  88 187 223\n",
      " 221 187 177 239 154 175 131 244 197 247  12  65  62 154  20 108  13 178\n",
      " 211  99  18  61 251 150  10 230  23 217  68 170  10  65 101 108 114 255\n",
      " 213 162  44 247  25 149 126 117  16 109  49 182 234 218 201 106  17  20\n",
      "  59  35 137 130 229 164 155 126   2 196  46  41  16  70 212 205 219 136\n",
      " 227  51  10 123 188 132 209 213  58 213 212  59 240 219 206 128  90 204\n",
      "  65  57 225  39 242 120 217   6  58  15   3 130  89  89  72 240 199   6\n",
      " 153 108   9  69 126  94 129  92 136  21 204 203  37  11 213  29 181  57\n",
      " 249 106  29  70 255 100  27  96 186 111 110  57  53 254  66 213 131 215\n",
      " 210 164  49 146 226  64 235   3 247 248 128 104 168 200  11 157  22 117\n",
      " 250  17 206  16 135  41 108  81  85 212 174  78 176 247 253 253 143 144\n",
      "   2  15 130 105 145  51  23 241 207 250   5   1   6 145 137  58  41 212\n",
      " 213 227 158 206 186  99 105 139  65 208 126  67 170 238 202 124  81  14\n",
      "  87  12 100  46 217  96 184 114 191 134  29 129  80 135  87 191 248 131\n",
      " 130  63 132  85  10  22 206 103  74 152  12  36 169  77 119  97 191 178\n",
      "  24  33  60 206  32 179  41 234 189 224  82  72 143 145 252 173 201 190\n",
      " 203 207 160  27 154  54  48 128 138  90  73 229 102  27 117  80  68 116\n",
      " 137 129 253  33 165 133  51  77  70 123 139  42 210  92 240 240 172 253\n",
      " 124 139 139   8 218 132 190 155 185 237  23 237  95 137  49 238 185 132\n",
      " 113  61 253 202 194 215  94   5 122 218]\n",
      "cb_subvector [[0.8724181  0.9654212  0.26271835 0.52633315]\n",
      " [0.6360283  0.43202588 0.15087692 0.9516444 ]\n",
      " [0.24144268 0.9431655  0.5380525  0.8924796 ]\n",
      " ...\n",
      " [0.5512761  0.0895047  0.63524246 0.771197  ]\n",
      " [0.5336407  0.10004339 0.83859354 0.45090136]\n",
      " [0.86100674 0.09387052 0.23774141 0.68602633]]\n",
      "最近邻索引: 92\n",
      "最近邻向量: [0.15158953 0.5954236  0.30215147 0.90280443 0.0421008  0.45144457\n",
      " 0.83972347 0.38334325 0.56249094 0.52848464 0.69263214 0.30948702\n",
      " 0.9533778  0.6417038  0.82640976 0.256473   0.73092574 0.35363188\n",
      " 0.05293983 0.824206   0.37866884 0.1736811  0.16114849 0.4823629\n",
      " 0.71144295 0.6151725  0.14961144 0.693204   0.5602481  0.46390152\n",
      " 0.51307255 0.5394279  0.697385   0.760709   0.16955455 0.93631995\n",
      " 0.66909075 0.1044016  0.6770722  0.04811924 0.46722794 0.64266074\n",
      " 0.23133601 0.36324674 0.07118568 0.6246879  0.43908468 0.27384657\n",
      " 0.8632449  0.15768257 0.07948933 0.40745547 0.8238839  0.8776777\n",
      " 0.00735459 0.12008075 0.53695685 0.10767122 0.24321495 0.7914005\n",
      " 0.21193792 0.19991629 0.3038116  0.5870142  0.21368678 0.48295438\n",
      " 0.21267149 0.00605454 0.37854546 0.95478433 0.30583984 0.7675818\n",
      " 0.28254113 0.79912055 0.19591239 0.26072812 0.38740283 0.02922953\n",
      " 0.33881968 0.17079607 0.5227115  0.9046615  0.6112646  0.7689983\n",
      " 0.569838   0.9821027  0.5302986  0.942695   0.8588819  0.7335209\n",
      " 0.66062367 0.4411759  0.24839707 0.62914664 0.35751364 0.67110765\n",
      " 0.27830076 0.66930526 0.52150273 0.16957654 0.51796293 0.81204647\n",
      " 0.18561338 0.36924103 0.63674176 0.8101323  0.37254506 0.05604478\n",
      " 0.6601698  0.63506    0.78606784 0.03905977 0.44201243 0.9614976\n",
      " 0.20368163 0.21634792 0.5237319  0.7451087  0.7243968  0.5415387\n",
      " 0.9980489  0.7892131  0.552064   0.44650164 0.2972508  0.36524978\n",
      " 0.3495798  0.3741342 ]\n"
     ]
    }
   ],
   "source": [
    "import numpy as np\n",
    "import faiss\n",
    "\n",
    "def build_codebooks(vectors, m, k):\n",
    "    \"\"\"\n",
    "    构建m个子向量的k-means码书。\n",
    "    :param vectors: 输入向量数组，形状为(n, d)\n",
    "    :param m: 子向量的数量\n",
    "    :param k: 每个子向量的码书大小\n",
    "    :return: 码书数组，形状为(m, d/m, k)\n",
    "    \"\"\"\n",
    "    codebooks = []\n",
    "    subvector_dim = vectors.shape[1] // m\n",
    "    print(\"subvector_dim\",subvector_dim)\n",
    "    for i in range(m):\n",
    "        subvectors = vectors[:, i * subvector_dim:(i + 1) * subvector_dim]\n",
    "        kmeans_index = faiss.IndexFlatL2(subvector_dim)  # 使用L2距离\n",
    "        kmeans = faiss.Kmeans(subvector_dim, k)\n",
    "        kmeans.train(subvectors)\n",
    "        centroids = kmeans.centroids\n",
    "        codebooks.append(centroids)\n",
    "    codebooks_np = np.array(codebooks)\n",
    "    print(codebooks_np.shape)\n",
    "    return codebooks_np\n",
    "\n",
    "def quantize_vectors(vectors, codebooks):\n",
    "    \"\"\"\n",
    "    对输入向量进行量化，返回量化后的索引数组。\n",
    "    :param vectors: 输入向量数组，形状为(n, d)\n",
    "    :param codebooks: 码书数组，形状为(m, d/m, k)\n",
    "    :return: 量化索引数组，形状为(n, m)\n",
    "    \"\"\"\n",
    "    quantized_indices = []\n",
    "    subvector_dim = vectors.shape[1] // len(codebooks) #4 Dim\n",
    "    for i, cb in enumerate(codebooks):\n",
    "        subvectors = vectors[:, i * subvector_dim:(i + 1) * subvector_dim] #将查询向量切割\n",
    "        distances = np.linalg.norm(subvectors[:, np.newaxis, :] - cb[np.newaxis, :, :], axis=-1)\n",
    "        # print(distances)\n",
    "        closest_centers = np.argmin(distances, axis=-1)\n",
    "        quantized_indices.append(closest_centers)\n",
    "    print(np.array(quantized_indices).T.shape)\n",
    "    # print(\"np.array(quantized_indices).T\")\n",
    "    # print(np.array(quantized_indices).T)\n",
    "    return np.array(quantized_indices).T #他是一次性计算出所有输入向量在第m个子向量下的量化表示，所以需要转置\n",
    "\n",
    "def search_quantized(query, codebooks, quantized_db):\n",
    "    \"\"\"\n",
    "    在量化后的数据库中搜索最近邻。\n",
    "    :param query: 查询向量，形状为(1, d)\n",
    "    :param codebooks: 码书数组，形状为(m, d/m, k)\n",
    "    :param quantized_db: 量化索引数组，形状为(n, m)\n",
    "    :return: 最近邻的索引\n",
    "    \"\"\"\n",
    "    subvector_dim = query.shape[0] // len(codebooks)\n",
    "    distances = []\n",
    "    for i, cb in enumerate(codebooks):\n",
    "        subquery = query[i * subvector_dim:(i + 1) * subvector_dim]\n",
    "        cb_subvector = cb[quantized_db[:, i]]\n",
    "        print(\"quantized_db[:, i]\",quantized_db[:, i])\n",
    "        print(\"cb_subvector\",cb_subvector)\n",
    "        dist = np.linalg.norm(subquery - cb_subvector, axis=-1)\n",
    "        distances.append(dist)\n",
    "    total_distance = np.sum(np.array(distances), axis=0)\n",
    "    nearest_index = np.argmin(total_distance)\n",
    "    return nearest_index\n",
    "\n",
    "def main():\n",
    "    # 数据准备\n",
    "    d = 128  # 向量维度\n",
    "    nb = 1000  # 数据库中的向量数量\n",
    "    np.random.seed(123)\n",
    "    database_vectors = np.random.random((nb, d)).astype('float32')\n",
    "\n",
    "    # 设置PQ参数\n",
    "    m = 32  # 子向量数量\n",
    "    k = 256  # 码书大小\n",
    "\n",
    "    # 构建码书\n",
    "    codebooks = build_codebooks(database_vectors, m, k)\n",
    "\n",
    "    # 量化数据库向量\n",
    "    quantized_db = quantize_vectors(database_vectors, codebooks)\n",
    "\n",
    "    # 创建查询向量\n",
    "    query_vector = np.random.random((d,)).astype('float32')\n",
    "\n",
    "    # 搜索最近邻\n",
    "    nearest_index = search_quantized(query_vector, codebooks, quantized_db)\n",
    "    print(\"最近邻索引:\", nearest_index)\n",
    "    print(\"最近邻向量:\", database_vectors[nearest_index])\n",
    "\n",
    "if __name__ == \"__main__\":\n",
    "    main()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "ename": "IndexError",
     "evalue": "too many indices for array: array is 1-dimensional, but 3 were indexed",
     "output_type": "error",
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mIndexError\u001b[0m                                Traceback (most recent call last)",
      "Cell \u001b[0;32mIn[25], line 2\u001b[0m\n\u001b[1;32m      1\u001b[0m a \u001b[38;5;241m=\u001b[39m np\u001b[38;5;241m.\u001b[39marray([\u001b[38;5;241m2\u001b[39m,\u001b[38;5;241m3\u001b[39m,\u001b[38;5;241m4\u001b[39m,\u001b[38;5;241m2\u001b[39m,\u001b[38;5;241m1\u001b[39m,\u001b[38;5;241m4\u001b[39m,\u001b[38;5;241m3\u001b[39m,\u001b[38;5;241m1\u001b[39m,\u001b[38;5;241m23\u001b[39m])\n\u001b[0;32m----> 2\u001b[0m b \u001b[38;5;241m=\u001b[39m \u001b[43ma\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m1\u001b[39;49m\u001b[43m,\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m,\u001b[49m\u001b[38;5;241;43m4\u001b[39;49m\u001b[43m]\u001b[49m\n",
      "\u001b[0;31mIndexError\u001b[0m: too many indices for array: array is 1-dimensional, but 3 were indexed"
     ]
    }
   ],
   "source": [
    "a = np.array([2,3,4,2,1,4,3,1,23])\n",
    "b = a[1,2,4]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1.8.0\n",
      "/home/gary/miniconda3/lib/python3.11/site-packages/faiss-1.8.0-py3.11.egg/faiss/__init__.py\n"
     ]
    }
   ],
   "source": [
    "#导入faiss并查看版本号\n",
    "import faiss\n",
    "print(faiss.__version__)\n",
    "#查看faiss包的路径\n",
    "print(faiss.__file__)\n",
    "#卸载该faiss包"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
